Let say i have an array of sensors, and using Last Will & Testament I want to know the offline status of any sensor node along with sensor id when ungraceful disconnect happens.--the common last will topic is sensor/offline and the LWT message will the sensor ids
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mqtt/42eb0ec9-a259-4477-a418-c65240d0993b%40googlegroups.com.
Last will is orthogonal to subscriptions.But this question seems weird. When you tried, did you see any reason why it would be a problem?
On Wed, Feb 26, 2020, 20:54 Naveen PS <naveen...@gmail.com> wrote:
Let say i have an array of sensors, and using Last Will & Testament I want to know the offline status of any sensor node along with sensor id when ungraceful disconnect happens.--the common last will topic is sensor/offline and the LWT message will the sensor ids
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mq...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mqtt/fdd90060-0241-48bc-b424-b9dd42ed91e2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mqtt/fdd90060-0241-48bc-b424-b9dd42ed91e2%40googlegroups.com.
Hi Nick,
Correct me if I am wrong. The Publisher clients on the first connect itself set the LWT Topic & Message in the broker with its CONNECT Packet. So, it means that the broker itself will have stored this LWT message and topic. So, lets say my sensor node 1 and sensor node 2 connects to the Broker with LWT topic sensor/offline and their respective sensor id's, wouldn't the topic message gets overwritten by the sensor node that disconnects later. When multiple sensor nodes disconnects ungracefully at the same time, wouldn't it be a problem?
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mqtt/67e8a666-992a-4554-b5cf-a57fa5b61f74%40googlegroups.com.
Andy
To view this discussion on the web visit https://groups.google.com/d/msgid/mqtt/67e8a666-992a-4554-b5cf-a57fa5b61f74%40googlegroups.com.