Get device list of a gateway

https://api.sciener.com/v3/gateway/listDevice

The gateway automatically searches for nearby devices belonging to the same administrator and reports them to the cloud to establish connections. This interface returns all devices connected to the gateway.

Connection records are cached for 30 minutes (this may be adjusted later). That is, as long as the gateway finds a device and reports it to the cloud within 30 minutes (the corresponding RSSI updateDate time is within 30 minutes), the cloud determines that the gateway and the device are connected. Therefore, this interface will not return the corresponding device information 30 minutes after the gateway is powered off.

Device include locks, electricity meters, and water meters.

1 Request example

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
gatewayIdIntYGateway ID
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
listJSONArrayrecord list

The objects in the list:

ParameterTypeDescription
deviceTypeIntEquipment type 0: Lock. 1: Electricity meter. 2: Water meter.
deviceIdIntDevice ID
deviceMacStringDevice MAC address
deviceNameStringDevice Bluetooth name
deviceAliasStringEquipment Alias
rssiIntFor signal strength between the gateway and the device, the reference standard is: greater than -75 is strong, greater than -85 and less than -75 is medium, and less than -85 is weak.
updateDateLongRSSI signal strength update time