This commit is contained in:
xyj 2023-12-09 15:19:47 +08:00
parent 40431a3c25
commit db380dc660
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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):