I’ve made an industrial style machine that streams it’s process to an external MQTT server. I’m using SYSTEM_MODE(MANUAL) so I can turn on important devices such as display and fans before I allow the P1 module to connect to the internet. This all works fine, but if the machine looses connection during it’s process - it will block application code while reconnecting.
I know that SYSTEM_THREAD(ENABLED); can resolve this (with some caveats), but I would much rather just get notified that the connection dropped (via an event) so that I can handle the reconnection at a time it suits me and the process.
I am sure that this is an option that many others also could benefit from. From that I understand this should be a fairly simple thing to implement?