Allow sub-devices to access the network

Last Updated on : 2023-12-07 03:33:49download

You can allow Zigbee devices to discover the gateway through this API.

API address

PUT: /v1.0/devices/{device_id}/enabled-sub-discovery

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueDevice ID
durationIntegerqueryfalseThe length of time the gateway is allowed to be discovered. Value range: 0~3600 seconds. A value of 0 seconds means stop discovery, and the default value is 100 seconds.

Return parameter

Parameter nameTypeDescription
resultBooleanExecution result:
  • true: Successful execution
  • false: Execution failed

Request example

PUT: /v1.0/devices/65057368c44f3380****/enabled-sub-discovery?duration=100

Return example

true

Error code

For more information, see error code.