ESDK Interconnection
Event
Custom message push to cloud
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:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"data": {
"value": "hello world"
},
"gateway": "4TADKAQ000002J",
"method": "custom_data_transmission_from_esdk",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"timestamp": 1689911315621
}
Service
Cloud - Custom message push 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 | Non-zero represents an error |
Example:
{
"bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"data": {
"result": 0
},
"method": "custom_data_transmission_to_esdk",
"tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"timestamp": 1689740550047
}