codmpm/esp-mqtt-btn-switch

Change mqtt code to non-blocking

Closed this issue · 0 comments

At the moment the "blocking" code is used for the mqtt-connection. Just replace the mqtt connect code with the non-blocking variant from https://github.com/knolleary/pubsubclient/blob/master/examples/mqtt_reconnect_nonblocking/mqtt_reconnect_nonblocking.ino