MQTT Last Will and Testament Use and Examples

The last will and testament message is used to notify subscribers of an unexpected shut down of the publisher. The basic process is. The publisher tells the broker to notify all subscribers to a topic, using the last will message , in the event that the connection breaks If the broker detects a connection break it sends the last will message to all subscribers of that topic. 3. If the client disconnects using the disconnect message then no last will message is sent.

Continue reading