EM500-CO₂ – Available Services

This topic provides IDs of services that can be invoked on EM500-CO2.

Usage

Workflow
  1. Copy the snippet of the desired service.
  2. If input parameters are required, fill in the values and remove the comments.
  3. Use it as the body parameters of Invoke Device Services Asynchronously .
Example
POST /device/openapi/v1/devices/1737019327786467329/services/call HTTP/1.1
Host: demo.milesight.cam
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Inxxxxxxxxxxxxxx
Content-Type: application/json

{
    "serviceId": "reboot",
    "inputs": {}
}

Supported services

Service ID

Clear Historical Data
{
    "serviceId": "clear_historical_data",
    "inputs": {}
}
Retrieve historical data for a specific time
{
    "serviceId": "retrival_historical_data_by_time",
    "inputs": {
        "time": "date" // Time Point Type: date Unit: s
    }
}
Retrieve historical data for a specific time range
{
    "serviceId": "retrival_historical_data_by_time_range",
    "inputs": {
        "start_time": "date", // Start Time Type: date Unit: s
        "end_time": "date" // End Time Type: date Unit: s
    }
}
Stop Retrieving historical data
{
    "serviceId": "stop_historical_data_retrival",
    "inputs": {}
}
CO₂ Target Calibration Settings
{
    "serviceId": "co2_calibration",
    "inputs": {
        "value": 0 // CO₂ Target Calibration Value Type: int
    }
}
CO₂ Restore Factory Calibration
{
    "serviceId": "co2_reset_calibration",
    "inputs": {}
}
CO₂ ABC Calibration
{
    "serviceId": "co2_abc_calibration",
    "inputs": {}
}
CO₂ Manual Calibration
{
    "serviceId": "co2_background_calibration",
    "inputs": {}
}
CO₂ Zero Calibration
{
    "serviceId": "co2_zero_calibration",
    "inputs": {}
}
Time Synchronize
{
    "serviceId": "time_synchronize",
    "inputs": {}
}
Query Device Status
{
    "serviceId": "query_device_status",
    "inputs": {}
}
Reboot
{
    "serviceId": "reboot",
    "inputs": {}
}