Hi, interesting article.
Anyone care to expound on this part:
>>> and without any way to distinguish a deliberate disconnection from a transient network issue
Anyone care to expound on this part:
>>> and without any way to distinguish a deliberate disconnection from a transient network issue
Last will is given to the broker at connect time. It doesn’t tell the broker that a disconnect is / isn’t deliberate. Last will has nothing to do with the reasoning for disconnect. It tells the broker what to do in case of a disconnect.
Edit: Also, it's worth noting that MQTT 5 greatly expands on the error reasons that the server can send to the client if it wants to indicate precisely why it's dropping the client.