Allow sub-devices to access the network

Last Updated on : 2023-06-20 15:33:45download

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


Error code

For more information, see error code.