PSDK 互联互通
Event
自定义消息推送 Cloud
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: custom_data_transmission_from_psdk
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
value | 数据内容 | text | {"length":"小于 256"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"data": {
"value": "hello world"
},
"gateway": "4TADKAQ000002J",
"method": "custom_data_transmission_from_psdk",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"timestamp": 1689911315621
}
Service
Cloud - 自定义消息推送到 PSDK
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: custom_data_transmission_to_psdk
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
value | 数据内容 | text | {"length":"小于 256"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"data": {
"value": "hello world"
},
"method": "custom_data_transmission_to_psdk",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"timestamp": 1689740550047
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: custom_data_transmission_to_psdk
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
result | 返回码 | int | 非 0 代表错误 |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"data": {
"result": 0
},
"method": "custom_data_transmission_to_psdk",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"timestamp": 1689740550047
}