Is it possible to get the MQTT data to remain in memory/cache until it changes? I'm using this extension to read a barometer that's separate from my Acu-Rite 7-in-1 weather station. It seems that the pressure reading only remains in memory for a second or two and then disappears. I'm using an ESP32 board to feed the pressure data via MQTT. I've tried setting the code (on the ESP32) to output the data every half second, but then the board crashes.
Is it possible to get the MQTT data to remain in memory/cache until it changes? I'm using this extension to read a barometer that's separate from my Acu-Rite 7-in-1 weather station. It seems that the pressure reading only remains in memory for a second or two and then disappears. I'm using an ESP32 board to feed the pressure data via MQTT. I've tried setting the code (on the ESP32) to output the data every half second, but then the board crashes.