ESDK Interconnection
Event
cloud-custom data transmit from esdk
Topic: thing/product/{gateway_sn}/events
Direction: up
Method: custom_data_transmission_from_esdk
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
value | Data content | text | {"length":"Less than 256"} |
Example:
{
"method": "custom_data_transmission_from_esdk",
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"timestamp": 1689911315621,
"gateway": "4TADKAQ000002J",
"data": {
"value": "hello world"
}
}
Service
cloud-custom data transmit to esdk
Topic: thing/product/{gateway_sn}/services
Direction: down
Method: custom_data_transmission_to_esdk
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
value | Data content | text | {"length":"Less than 256"} |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"data": {
"value": "hello world"
},
"method": "custom_data_transmission_to_esdk",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"timestamp": 1689740550047
}
Topic: thing/product/{gateway_sn}/services_reply
Direction: up
Method: custom_data_transmission_to_esdk
Data:
Column | Name | Type | constraint | Description |
---|---|---|---|---|
result | Return Code | int |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"data": {
"result": 0
},
"method": "custom_data_transmission_to_esdk",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"timestamp": 1689740550047
}