소스 검색

所有设备已断开连接

rambo 4 달 전
부모
커밋
515df4f779
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      python/sockets/socket_server.py

+ 1 - 0
python/sockets/socket_server.py

@@ -42,6 +42,7 @@ async def websocket_endpoint(websocket: WebSocket):
                             blue_tooth.disconnect_device(diviceAddress, diviceName)
                         blue_tooth.bluetooth_exit = True
                         blue_tooth.clearMyInstance()
+                        print("所有设备已断开连接")
                         break
                     print("byteDats", byteDats)
                     await handlerSend(conn_manager, json.dumps(byteDats), websocket)