Get the gateway list of an account

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

List the gateways belong to a user account.

1 Request example

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
pageNoIntYPage no, start from 1
pageSizeIntYItems per page, max 200
orderByIntYSort by: 0-by name, 1-reverse order by time, 2-reverse order by name
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
listJSONArraylist of records
pageNoIntPage no, start from 1
pageSizeIntItems per page, max 200
pagesIntTotal number of pages
totalIntTotal number of records

The objects in the list

ParameterTypeDescription
gatewayIdIntGateway ID
gatewayMacStringGateway MAC
gatewayNameStringGateway name
gatewayVersionIntThe version of gateway, 1-G1,2-G2,3-G3(wired gateway),4-G4(4G gateway)
networkNameStringThe network name gateway connected to.
networkMacStringMac address of the network to which the gateway is connected
lockNumIntThe number of locks connected to the gateway.
isOnlineIntIs it online: 0-No, 1-Yes. The gateway will maintain a TCP connection with the gateway server, the cloud server consider it online if the connection is present, plug off the gateway may not break the connection immediately, it may take several minutes for the gateway server to break the connection after heartbeat timeout.