Get the lock list of a gateway

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

The gateway automatically search locks nearby it, and notify the gateway server about the locks it found, the gateway server will create a many-to-many relationship between the gateways and locks if the lock and gateway belong to the same administrator account, the relationship will be cached for 30 minutes, that is, if the gateway have notified the gateway server about a lock in 30 minutes, this API will return the lock.

This API will return all the locks related to a gateway.

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
listJSONArraylist of records

The objects in the list:

ParameterTypeDescription
lockIdIntLock ID
lockMacStringLock MAC
lockNameStringLock name
lockAliasStringLock alias
rssiIntThe signal intensity between gateway and lock. reference: >-75 is strong, -85<i<-75 is medium, <-85 is weak
updateDateLongThe time when the signal intensity updated (timestamp in millisecond)