Configuration Update

2023-07-13
No Rating

Requests

Get the configuration

Topic: thing/product/{gateway_sn}/requests

Direction: up

Method: config

Data:

ColumnNameTypeconstraintDescription
config_typeConfiguration typeenum{"json":"json format"}
config_scopeThe scope of configurationenum{"product":"Product dimension"}

Example:

{
	"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
	"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
	"timestamp": 1667803298000,
	"gateway": "sn",
	"method": "config",
	"data": {
		"config_type": "json",
		"config_scope": "product"
	}
}

Topic: thing/product/{gateway_sn}/requests_reply

Direction: down

Method: config

Data:

ColumnNameTypeconstraintDescription
ntp_server_hostNTP service Hoststring{}the service domain or IP that supports the NTP protocol. The default port is 123. This service domain or IP should be able to access through the Dock network.
app_idApp ID created on the developer websiteopen in new windowstring{}
app_keyApp Key created on the developer websiteopen in new windowstring{}
app_licenseApp License created on the developer websiteopen in new windowstring{}

Example:

{
	"tid": "6a7bfe89-c386-4043-b600-b518e10096cc",
	"bid": "42a19f36-5117-4520-bd13-fd61d818d52e",
	"timestamp": 1667803298000,
	"gateway": "sn",
	"method": "config",
	"data": {
		"ntp_server_host": "host_url",
		"app_id": "123456",
		"app_key": "app_key",
		"app_license": "app_license"
	}
}
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.