Query Zigbee devices under the gateway

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

You can get the list of Zigbee devices under the gateway through this API.

API address

GET: /v1.0/devices/{device_id}/sub-devices

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueDevice ID

Return parameter

Parameter nameTypeDescription
resultArrayListReturn result

Description of result

Parameter nameTypeDescription
serial_version_u_i_dLong
_d_e_f_a_u_l_t__c_a_p_a_c_i_t_yInteger
_e_m_p_t_y__e_l_e_m_e_n_t_d_a_t_aObject[]
_d_e_f_a_u_l_t_c_a_p_a_c_i_t_y__e_m_p_t_y__e_l_e_m_e_n_t_d_a_t_aObject[]
element_dataObject[]
sizeInteger
_m_a_x__a_r_r_a_y__s_i_z_eInteger
mod_countInteger

Request example

GET: /v1.0/devices/xxxid/sub-devices

Error code

For more information, see error code.