This endpoint will provide the QR code which will be used to initiate an authenticated session by scanning the QR code with a mobile device. The QR code that is generated from the cloud is device-specific.
Request Topic and Payload
Topic
things5-production/v1/devices/<device-id>/authentication_qr_res
Payload Representation
{
"qr_code": "data:image/png;base64,{base64_qr_code}",
"expiration_time": "{expiration_timestamp}"
}
Payload Parameters
type | description | example |
---|---|---|
qr_code | QR code generated by the cloud in base64 format | |
expiration_time | Expiration time of the QR code. | 1500000000030 |
- Ensure that the is valid and corresponds to a registered device.
- The QR code will be valid until the specified expiration_time. After that, a new QR code will need to be requested.
Example response
{
"qr_code": "data:image/png;base64,iVBORw0KGgoAAAANS...",
"expiration_time": "1500000000030",
}