Admin APIs/Vehicle Sensors
Run Sensor (Test)
POST
/admin/vehicles/:vehicleId/sensors/runBearer token required
ADMINContent-Type:
application/jsonPath Parameters
| Name | Type | Required | Description |
|---|---|---|---|
vehicleId | number | Required |
Request Example
JSON
{
"sensorId": 5,
"telemetryData": {
"adc1": 2048,
"speed": 60,
"latitude": 28.6139
}
}Code Examples
curl -X POST 'https://<your-domain>:3001/admin/vehicles/:vehicleId/sensors/run' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"sensorId": 5,
"telemetryData": {
"adc1": 2048,
"speed": 60,
"latitude": 28.6139
}
}'