This URL gets the Sensor status (Active/Disconnected).
Resource URL
GET /sensor/<sensor_id>/status
Request Parameters
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Sensor Id | Number | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Sensor status, can be “ACTIVE”/”DISCONNECTED” | String |
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/status
Response
{
"status": "ACTIVE"
}
Error Information
Following error codes are returned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1106 | Invalid Sensor |