配置更新

2023-07-18
暂无评分

Requests

获取配置

Topic: thing/product/{gateway_sn}/requests

Direction: up

Method: config

Data:

ColumnNameTypeconstraintDescription
config_type配置类型enum{"json":"json格式"}
config_scope配置范围enum{"product":"产品维度"}

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 服务 Hoststring{}任意支持 NTP 服务的服务器域名或 IP。默认端口为 123。服务器域名或 IP 需要可被机场网络访问。
app_id开发者网站open in new window 创建的 App 的 IDstring{}
app_key开发者网站open in new window 创建的 App 的 Keystring{}
app_license开发者网站open in new window 创建的 App 的 Licensestring{}

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"
	}
}
若您对文档有意见或疑惑,点击可快速反馈,我们会与您联系。