This commit is contained in:
xyj 2023-12-09 15:41:46 +08:00
parent ef268df604
commit b92f2ead8d
2 changed files with 4 additions and 2 deletions

View File

@ -216,9 +216,10 @@ def test():
}
t2 = LOT_DATA(**data)
add(t2)
time.sleep(10)
except:
pass
finally:
time.sleep(10)
if __name__ == '__main__':

View File

@ -220,9 +220,10 @@ def test():
t2 = LOT_DATA(**data)
client.publish('demo', payload=json.dumps(data, ensure_ascii=False), qos=0)
add(t2)
time.sleep(10)
except:
pass
finally:
time.sleep(10)
def on_connect(client, userdata, flags, rc):