fix period
This commit is contained in:
parent
53e75d98c1
commit
50af4ebcaa
@ -41,7 +41,7 @@ mqttClient.loop_start()
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
time.sleep(5)
|
time.sleep(60)
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
secondsSinceMidnight = now.second + now.minute * 60 + now.hour * 60 * 60
|
secondsSinceMidnight = now.second + now.minute * 60 + now.hour * 60 * 60
|
||||||
mqttClient.publish('IoT/SecondsSinceMidnight', str(secondsSinceMidnight))
|
mqttClient.publish('IoT/SecondsSinceMidnight', str(secondsSinceMidnight))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user