From ca52061a764b77884535e980bd9af4434b3d4ff3 Mon Sep 17 00:00:00 2001 From: enesbcs Date: Wed, 30 Jan 2019 23:29:09 +0100 Subject: [PATCH] C002 decreasing PING rate when sending --- _C002_DomoMQTT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_C002_DomoMQTT.py b/_C002_DomoMQTT.py index 8d1d77a..ab30267 100644 --- a/_C002_DomoMQTT.py +++ b/_C002_DomoMQTT.py @@ -295,7 +295,7 @@ def senddata(self,idx,sensortype,value,userssi=-1,usebattery=-1,tasknum=-1,chang domomsgwb = '{{ "idx": {0}, "nvalue": {1:0.2f}, "svalue": "{2}", "RSSI": {3}, "Battery": {4} }}' domosmsgw = '{{"command": "switchlight", "idx": {0}, "switchcmd": "Set Level", "level":"{1}", "RSSI": {2} }}' domosmsgwb = '{{"command": "switchlight", "idx": {0}, "switchcmd": "Set Level", "level":"{1}", "RSSI": {2}, "Battery": {3} }}' - if self.isconnected(): + if self.isconnected(False): try: usebattery = float(usebattery) except: