Connecting to the broker

A broker connection (in the context of RM) requires the following steps:

  • Token generation - Initial Token generation before connecting to the broker is a must. More information on tokens can be found in the Security section of the MQTT Device Management Model page.

  • "Last Will and Testament" - a logout message must be created containing the previously generated token (required only if the Generic MQTT Device type is extended).

  • Establish a connection to the broker with the created "Last Will and Testament" message.

Connecting to the backend

Establishing a connection to the Backend requires:

  • An active connection to the broker.

  • An active subscription for device/<device type>/<device id>/<token>/# (if one-way communication is sufficient, e.g. sending telemetry data, no subscription is required).

  • A successful login.