https://api.sciener.com/v3/standaloneDoorSensor/configNetwork
After the independent door sensor is successfully configured to network, the network information is uploaded to the cloud for easy maintenance. If the WIFI is not connected to the server, this interface will return a failure error code.
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxx71curl --location -g --request POST 'https://api.sciener.com/v3/standaloneDoorSensor/configNetwork' \2--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \3--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \4--data-urlencode 'doorSensorId=100123' \5--data-urlencode 'doorSensorData=xxxxxxxxxxxxx' \6--data-urlencode 'wifiName=Sciener' \7--data-urlencode 'date=1625025703000'| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| doorSensorId | Int | Y | Door sensor ID |
| doorSensorData | String | Y | Independent door sensor data must be generated by configuring the network interface in the APP SDK. |
| wifiName | String | Y | WIFI name |
| date | Long | Y | Current time (timestamp, in milliseconds) |
| Parameter | Type | Description |
|---|---|---|
| errcode | Int | Error code |
| errmsg | String | Error message |
| errmsg | String | Error information |
xxxxxxxxxx51{2"errcode": 0,3"errmsg": "none error message",4"description":"表示成功或是"5}