Request

In order to maintain a consistent online/offline status information, a logout request message could be sent. If successful, i.e. the device was previously logged in with the same token, the device's status will be changed to "offline" and the device will become unavailable for certain management operations.

This request message can also be used as a "Last Will and Testament" message, which will be sent by the broker if an unexpected disconnect occurs, thus maintaining correct status information.

Since an "offline" device is perceived to be disconnected from the broker, no response is sent by the RM.

Topic

backend/<device-type>/<device-id>/logout

Payload

{
  "token" : <string>
}
  • "token" - this field is mandatory and is part of the security concept for the messaging protocol. For more information check the Security section in the MQTT Device Management Model page.