Hi, I’m happy to provide the current working code. But we have a customer who’s pushing MQTT messages from BASIC. They want to store messages that don’t get sent in the event the ewon loses connection to the broker.
Is there any guidance on writing files to an SDcard that can be read and then published once the script detects it’s connected again?
I am also open to the idea of reading historical tags to publish those. If possible it may be more prudent considering how the current code is set up. I am happy to share the code but wanted to see if there was any general guidance.
To Recap: I need to, in the even the device loses connection to the broker, push a MQTT message to the SD card, then read and post it to the broker on connection recovery.
Thanks