update
This commit is contained in:
parent
40431a3c25
commit
db380dc660
|
@ -186,6 +186,7 @@ def local():
|
|||
}
|
||||
t = LOT_DATA(**data)
|
||||
add(t)
|
||||
time.sleep(1)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
pass
|
||||
|
|
|
@ -218,6 +218,7 @@ def test():
|
|||
t2 = LOT_DATA(**data)
|
||||
client.publish('demo', payload=json.dumps(data, ensure_ascii=False), qos=0)
|
||||
add(t2)
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
def on_connect(client, userdata, flags, rc):
|
||||
|
|
Loading…
Reference in New Issue