|
|
@ -170,7 +170,7 @@ async def receive_messages(websocket: WebSocket):
|
|
|
|
async def send_messages(websocket: WebSocket):
|
|
|
|
async def send_messages(websocket: WebSocket):
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
|
message = await to_device.get()
|
|
|
|
message = await to_device.get()
|
|
|
|
print(f"Sending to the device: {type(message)} {str(message)[:100]}")
|
|
|
|
#print(f"Sending to the device: {type(message)} {str(message)[:100]}")
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if isinstance(message, dict):
|
|
|
|
if isinstance(message, dict):
|
|
|
|