Short of adding non-volatile memory to your setup, you can abuse MQTT’s persistence ... we need to add a new configuration file on our home Pi-based MQTT server. In this example, I’m calling ...
and one on the MQTT server side. Specifically, I’ll tackle the NodeMCU’s sleep mode to reduce power and step you through bridging MQTT servers to get your data securely out of your home server ...