Query the init status of the gateway

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

Request this API after you calling the APP SDK method to add a gateway(in 3 minutes), to check whether it has been added successfully, it's success if gatewayId is returned.

If there is a new gateway with the same gatewayNetMac added to your account in the last 3 minutes, this API will return it's gateway ID.

Notice:If you have not named the gateway with it's gatewayNetMac when init the gateway by APP SDK,request this API with parameter gatewayNetMac set to your specific name.

1 Request example

POST, ContentType:application/x-www-form-urlencoded

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
gatewayNetMacStringYThe Mac which you will get when calling the APP SDK method to add a gateway
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
gatewayIdIntGateway ID