original_docstring: 
      starts listening on the defined serial port and passing
      received data along to the web client when received
      
docstring: starts listening on the defined serial port and passing
  received data along to the web client when received
docstring_tokens: starts listening on the defined serial port and passing received data along to the web client when received
code: def handleLocal():
      """
      starts listening on the defined serial port and passing
      received data along to the web client when received
      """
      transceiver = Transceiver()
      url = os.environ.get("DJANGO_SERVER_API_ENDPOINT")
      if url:
          client = WebClient(server_url=url)
          while True:
              data = transceiver.listen()
              if data:
                  print(data, type(data))
                  payload = json.loads(data)
                  client.send(payload)
      else:
          print("DJANGO_SERVER_API_ENDPOINT not set")
code_tokens: def handleLocal ( ) : transceiver = Transceiver ( ) url = os . environ . get ( "DJANGO_SERVER_API_ENDPOINT" ) if url : client = WebClient ( server_url = url ) while True : data = transceiver . listen ( ) if data : print ( data , type ( data ) ) payload = json . loads ( data ) client . send ( payload ) else : print ( "DJANGO_SERVER_API_ENDPOINT not set" )
short_docstring: starts listening on the defined serial port and passing
  received data along to the web client when received
short_docstring_tokens: starts listening on the defined serial port and passing received data along to the web client when received
comment: """
      starts listening on the defined serial port and passing
      received data along to the web client when received
      """