Set Specific Sensor Setting API
Require Authentication
This API is used to set sensor settings to 1 specific sensor registered by the company based on combination of deviceID and token.
URL
api/sensors/setspecificsettings
Required parameter (POST)
- deviceID
- token
- sensorsID «contains the sensorsID that will be configured.»
- heartbeatFrequency «contains the frequency of sensor hearbeat in seconds. Minimal value is 1.»
Optional parameter
Example JSON Payload
{
  "deviceID": "ABCD-EFGH-IJKL-MNOP",
  "token": "c43fa596e7916827106b591e2bb026cd",
  "sensorsID": 1,
  "heartbeatFrequency": 3600
}
Possible return HTTP status code
- 200
- 400
- 401
- 405
Return message
{
  "status": "success",
  "message": {
    "sensorsID": 1,
    "heartbeatFrequency": 3600,
    "lastUpdate": 1464284551
  }
}
