Configuration Update

2025-02-17
No Rating

Requests

Get configuration

Topic: thing/product/{gateway_sn}/requests

Direction: up

Method: config

Data:

ColumnNameTypeConstraintDescription
config_typeConfiguration typeenum_string{"json":"JSON format"}
config_scopeConfiguration scopeenum_string{"product":"Product dimension"}

Example:

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

Topic: thing/product/{gateway_sn}/requests_reply

Direction: down

Method: config

Data:

ColumnNameTypeConstraintDescription
ntp_server_hostNTP service hosttext{"length":""}
app_idThe ID of the app created on the DJI Developer Websiteopen in new window.text{"length":""}
app_keyThe key of the app created on the DJI Developer Websiteopen in new window.text{"length":""}
app_licenseThe license of the app created on the DJI Developer Websiteopen in new window.text{"length":""}
ntp_server_portNTP server port numberint{"max":"","min":"","step":"","unit_name":null}If this field is not included in the request, the default NTP port number is 123

Example:

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