Browse Source

发送消息

zhangyh 9 months ago
parent
commit
bdf96fc457
1 changed files with 1 additions and 1 deletions
  1. 1 1
      python/mcu/BaseClass.py

+ 1 - 1
python/mcu/BaseClass.py

@@ -11,7 +11,7 @@ class BaseClass:
         data = {"code": code, "msg": msg, "data": data, "msg_type": msg_type}
         # loop = asyncio.get_event_loop()
         # loop.create_task(self.websocket_manager.broadcast(data))
-        await message_queue.put(data)
+        message_queue.put(data)
     def change_hex_to_int(self,_bytearray):
         return ' '.join([hex(x) for x in _bytearray])