Skip to content

Commit

Permalink
C002 decreasing PING rate when sending
Browse files Browse the repository at this point in the history
  • Loading branch information
enesbcs committed Jan 30, 2019
1 parent 5af2fe7 commit ca52061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _C002_DomoMQTT.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ca52061

Please sign in to comment.