Gateway online or offline notify
Same as lock records notify, this API should be developed yourself on your system, you can set the callback URL in the detail page of your application in Management Center. The cloud server will call this callback URL to notify your system when there are gateway online or offline. Gateway offline notify has 30 minutes delay from actual offline time
Notice: to receive gateway online or offline notify, please make sure the gateway's administrator have get access token with your application's clientId.
1 Request method
POST, ContentType:application/x-www-form-urlencoded
2 Request parameters
| Name | Type | Description |
|---|---|---|
| notifyType | Int | 2, mean gateway online or offline notify |
| gatewayId | Int | Gateway ID |
| gatewayName | String | Gteway name |
| gatewayMac | String | Gateway Mac |
| gatewayVersion | Int | Gateway version: 1-G1, 2-G2 |
| networkName | String | The network name which the gateway connected to |
| isOnline | Int | Online or offline:0-Offline,1-Online |
Response
Response a raw string: "success" in the response body.
