Files
OpenBK7231T_App/docs/autoexecs/waiting_for_MQTT_connect.bat
2023-04-18 17:16:12 +02:00

17 lines
414 B
Batchfile

// do anything on startup
startDriver NTP
startDriver SSDP
// now wait for MQTT
waitFor MQTTState 1
// extra delay, to be sure
delay_s 1
publish myVariable 2022
// you can publish again just to be sure
// delay_s 1
// publish myVariable 2022
// if you have a battery powered device, you can now uncomment this line:
// Deep sleep (shut down everything) and reboot automatically after 600 seconds
//DeepSleep 600