ESDK Interconnection

2024-10-29
No Rating

Event

Custom message push to cloud

Topic: thing/product/{gateway_sn}/events

Direction: up

Method: custom_data_transmission_from_esdk

Data:

ColumnNameTypeconstraintDescription
valueData contenttext{"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:

ColumnNameTypeconstraintDescription
valueData contenttext{"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:

ColumnNameTypeconstraintDescription
resultReturn codeintNon-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
}
If you have any comments or confusion about our documentation, you can click here to give feedback and we will get back to you as soon as possible.