You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I connect to the web socket "wss://demo.thingsboard.io/api/ws" via postman and then I authenticate with this message "{
"authCmd": {
"cmdId": 0,
"token": "{{tbtoken}}"
}
}
"
but when i try to subscribe to a device`s telemetry using this message "{
"tsSubCmds":
[
{
"entityType":"DEVICE",
"entityId":"06b63430-fd96-11ee-ad61-f7ea2501b433",
"cmdId":1
}
],
"historyCmds":[],
"attrSubCmds":[]
}"
i am getting this response "{
"subscriptionId": 1,
"errorCode": 2,
"errorMsg": "Failed to parse the payload",
"data": null,
"latestValues": {}
}"
how can i susbscribe to the telemetry of that device in the right way?
The text was updated successfully, but these errors were encountered:
how can i susbscribe to the telemetry of that device in the right way?
To debug you can create dashboard with single widget, add your device as alias and after running the dashboard look at browser console in Network/WS tab. There you will find appropriate data format.
Component
Description
I connect to the web socket "wss://demo.thingsboard.io/api/ws" via postman and then I authenticate with this message "{
"authCmd": {
"cmdId": 0,
"token": "{{tbtoken}}"
}
}
"
but when i try to subscribe to a device`s telemetry using this message "{
"tsSubCmds":
[
{
"entityType":"DEVICE",
"entityId":"06b63430-fd96-11ee-ad61-f7ea2501b433",
"cmdId":1
}
],
"historyCmds":[],
"attrSubCmds":[]
}"
i am getting this response "{
"subscriptionId": 1,
"errorCode": 2,
"errorMsg": "Failed to parse the payload",
"data": null,
"latestValues": {}
}"
how can i susbscribe to the telemetry of that device in the right way?
The text was updated successfully, but these errors were encountered: