AM319 – Available Services

This topic provides IDs of services that can be invoked on AM319(L).

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: milesight.demo.com
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Inxxxxxxxxxxxxxx
Content-Type: application/x-www-form-urlencoded
User-Agent: OpenAPI

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

Supported services

Service ID

Query LED and buzzer status
{
    "serviceId": "led_buzzer_status",
    "inputs": {}
}
Stop the buzzing sound of the buzzer
{
    "serviceId": "stop_buzzer",
    "inputs": {}
}
Reboot the device
{
    "serviceId": "reboot",
    "inputs": {}
}
CO₂ reset calibration
{
    "serviceId": "co2_reset_calibration",
    "inputs": {}
}
CO₂ background calibration
{
    "serviceId": "co2_background_calibration",
    "inputs": {}
}
Clear historical data
{
    "serviceId": "clear_historical_data",
    "inputs": {}
}
Retrieve historical data for a specific time
{
    "serviceId": "retrival_historical_data_by_time",
    "inputs": {
        "time": null   // Specify the time for querying data (Format: Timestamp).
    }
}
Retrieve historical data for a specific time range
{
    "serviceId": "retrival_historical_data_by_time_range",
    "inputs": {
        "start_time": null,   // Specify the start time for querying data (Format: Timestamp).
        "end_time": null      // Specify the end time for querying data (Format: Timestamp).
    }
}
Stop retrieving historical data
{
    "serviceId": "stop_historical_data_retrival",
    "inputs": {}
}