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