Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to get MQTT data to cache/persist/stay in place/stick around/not reset until it changes #212

Closed
kevinkey619 opened this issue Apr 12, 2024 · 1 comment
Assignees

Comments

@kevinkey619
Copy link

kevinkey619 commented Apr 12, 2024

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.

@bellrichm
Copy link
Owner

I'm sorry, but there is no way to do this. If a downstream service needs to cache the values, it needs to provide that functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants