added latestReportTime

This commit is contained in:
Nico Melone
2023-11-01 08:57:49 -05:00
parent c7a7d409cd
commit 3346628b3a
3 changed files with 2 additions and 0 deletions

BIN
.DS_Store vendored

Binary file not shown.

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@
tb_report/frontend/node_modules/**
meshifyDrivers/.DS_Store
.DS_Store
.DS_Store

View File

@@ -85,6 +85,7 @@ class start(threading.Thread, deviceBase):
payload["values"]["public_ip_address"] = self.public_ip_address
payload["values"]["private_ip_address"] = self.private_ip_address
self.sendToTB(json.dumps(payload))
self.sendToTBAttributes(json.dumps({"latestReportTime": round(time.time()/600)*600*1000}))
time.sleep(TAG_DATAERROR_SLEEPTIME) # sleep to allow Micro800 to handle ENET requests
# print("tankalarms driver still alive...")