Hi,
I am working on my home automation project.
The intent is for the switch to work even when NOT connected to MQTT Server and WiFi.
I am using internal code to control the switch and relays.
But the MQTT loop is blocking the code.
Can you help with a code structure, the MQTT and WiFi connectivity should NOT block the switch function.
Appreciate your help.
Thanks,
Abhay