WT401 – Available Services

This topic provides IDs of services that can be invoked on WT401.

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.com
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Inxxxxxxxxxxxxxx
Content-Type: application/json

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

Supported services

Service ID

Reboot
{
    "serviceId": "reboot",
    "inputs": {}
}
External Temperature
{
    "serviceId": "origin_temperature",
    "inputs": {
        "_param": 48 // External Temperature Type: float Unit: ℃
    }
}
External Humidity
{
    "serviceId": "origin_humidity",
    "inputs": {
        "_param": 4 // External Humidity Type: float Unit: %
    }
}
Execute Schedule
{
    "serviceId": "insert_temporary_plan",
    "inputs": {
        "id": 0 // Plan ID Type: int
    }
}
Reset Ble Name
{
    "serviceId": "reset_ble_name",
    "inputs": {}
}
Query Device Status
{
    "serviceId": "query_device_status",
    "inputs": {}
}
Time Synchronize
{
    "serviceId": "synchronize_time",
    "inputs": {}
}
Rejoin the Network
{
    "serviceId": "reconnect",
    "inputs": {}
}
Delete Schedule
{
    "serviceId": "delete_task_plan",
    "inputs": {
        "type": "255" // Delete Schedule Type: enum Enum: 0-Schedule1 1-Schedule2 2-Schedule3 3-Schedule4 4-Schedule5 5-Schedule6 6-Schedule7 7-Schedule8 255-Reset All
    }
}