Login
In Order to login into the Backend, the Device should send the following message:
TOPIC
backend/<device type>/<device id>/login
BODY
{
* "token" : <string>,
"requestId" : <string>,
"needAck" : <boolean>,
* "loginProperties" : {
"mqtt.device.password" : <string>,
"mqtt.device.username" : <string>,
<string> : <string>, // additional info if needed
...
}
}
The Backend provides basic authentication mechanism with Username and Password. The credentials should be provided in the "loginProperties" Map in the body of the message with the keys:
username – "mqtt.device.username"
password – "mqtt.device.password"
Respons will be send acknowledging the system is Onlie and ready to work with this Device. Error will be send if the authentication is not successful.
Respons :
TOPIC
device/<device type>/<device id>/<token>/login
BODY
{
"requestId" : <string>
"error" : <string>
}