4 ms·
Perhaps someone here that's familiar with MQTT (and variants) can shed light on how to handle this case: an IoT device that periodically comes to life, queries
by canada_dry 5y ago
Perhaps someone here that's familiar with MQTT (and variants) can shed light on how to handle this case: an IoT device that periodically comes to life, queries the broker for the last known state of topic 'xyz', then sends a message regarding another topic 'abc' and goes back to sleep. i.e. it's not awake to receive updates to the 'xyz' topic, but needs to know the last update when it awakes.
- Kuinox 5y agoWith mqtt you may do that with retained messages. The emitter of a message mark the message as to be retained. The server will retain it. Now when your mqtt client will subscribe tout the topic, the server will send the last retained message for this topic.