I get the message "offline" on the subscriber, but the last will message "disconnected" as well. If I add some delay between the publish and the disconnect, no last will is sent and the client disconnects properly.
we are having the same issue, offline disconnect from graceful is being published but not ungraceful disconnect, when the device goes down, dueto network etc.
I try to distinguish between 3 different kind of device status:
Now If i try the following:
I get the message "offline" on the subscriber, but the last will message "disconnected" as well. If I add some delay between the publish and the disconnect, no last will is sent and the client disconnects properly.