|
|
@@ -15,6 +15,7 @@ class RemoteControlV2(BaseClass):
|
|
|
def __init__(self, bluetooth_ins, websocket_manager: ConnectionManager):
|
|
|
# 遥控设备处理--新版遥控器;硅胶按钮
|
|
|
super().__init__(websocket_manager)
|
|
|
+ self.msg_type = "blue_tooth"
|
|
|
self.websocket_manager = websocket_manager
|
|
|
# self.windows = windows
|
|
|
self.serial_ins = None
|
|
|
@@ -139,6 +140,8 @@ class RemoteControlV2(BaseClass):
|
|
|
# self.windows.show_label.setText("{}".format(flag))
|
|
|
if voltage_text:
|
|
|
print(voltage_text)
|
|
|
+ # 发送电量剩余消息
|
|
|
+ self.sendSocketMessage(msg=voltage_text)
|
|
|
# self.windows.show_label.setText("{}".format(voltage_text))
|
|
|
else:
|
|
|
if voltage_value == 0:
|
|
|
@@ -147,7 +150,7 @@ class RemoteControlV2(BaseClass):
|
|
|
else:
|
|
|
print("电量:{}%".format(voltage_value))
|
|
|
# self.windows.show_label.setText("电量:{}%".format(voltage_value))
|
|
|
- print("打印===>", flag)
|
|
|
+ # print("打印===>", flag)
|
|
|
def close_connect(self):
|
|
|
self.port_name = ""
|
|
|
self.bluetooth_address = ""
|