TS60x – Available Services
This topic provides IDs of services that can be invoked on TS602-L0DEU.
Usage
- Workflow
-
- Copy the snippet of the desired service.
- If input parameters are required, fill in the values and remove the comments.
- 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": {} }
- Clear Historical Data
-
{ "serviceId": "clear_historical_data", "inputs": {} }
- Query Device Status
-
{ "serviceId": "query_device_status", "inputs": {} }
- Time Synchronize
-
{ "serviceId": "synchronize_time", "inputs": {} }
- Clear Alarm Item (TS602 Only)
-
{ "serviceId": "clear_alarm_item", "inputs": {} }
- Zero Calibration
-
{ "serviceId": "set_zero_calibration", "inputs": { "operation": "1" // Zero Calibration Type: enum Enum: 0-Clear zero calibration 1-Start zero calibration } }
- Set Relative Initial Surface
-
{ "serviceId": "set_retrieval_initial_surface", "inputs": { "operation": "0" // Set Relative Initial Surface Type: enum Enum: 0-Reset the zero reference point to the horizontal plane 1-Set the current plane as the new zero reference point } }
- Get Sensor ID (TS602 Only)
-
{ "serviceId": "get_sensor_id", "inputs": {} }
- Temperature And Humidity Display Switch (TS602 Only)
-
{ "serviceId": "temperature_humidity_display_switch", "inputs": { "switch": "0" // Temperature And Humidity Display Switch on Device Screen Type: enum Enum: 0-temperature 1-humidity } }
- Command Queries
-
{ "serviceId": "request_command_queries", "inputs": { "length": 1, // Command Length Type: int "object_command": "0XDF" // The command that was queried Type: enum Enum: 0XDF-TSL Version 0XDB-SN 0XDA-Product Version 0XD9-OEM ID 0XC8-Device Status 0X01-Battery 0X03-Sensor ID 0X04-Temperature 0X05-Humidity 0X06-Base station positioning 0X07-Airplane Mode State 0X1A-Temperature Alarm Type 0X1110-Battery AlarmLow Battery Alarm 0X1B-Humidity Alarm Type 0X1C-Tilt Alarm Type 0X1D-Light Alarm Type 0X0C-Probe Connect Status Alarm 0X0D-Get The Relative Initial Surface Angle Value 0X0E-Report package type 0X60-Reporting Interval 0X61-Cumulative Numbers 0X62-Collecting Interval 0X63-Alarm Max Count 0X75-Alarm Threshold Release 0X65-Temperature Unit 0XC4-AutoP Enable 0X71-Base Station Positioning 0X7300-Airplane Mode Time PeriodFlight Mode Enable Mode 0X7301-Airplane Mode Time PeriodStart Time 0X7302-Airplane Mode Time PeriodEnd Time 0XC7-Time Zone 0XC6-Daylight Saving Time 0XC500-Data Storage SettingsData Storage Enable 0XC501-Data Storage SettingsData Retransmission Enable 0XC502-Data Storage SettingsRetransmission Interval 0X76-Button Lock 0X77-Temperature Threshold Alarm Config 0X78-Temperature Shift Threshold 0X79-Humidity Threshold Alarm 0X7A-Humidity Mutation Alarm Config 0X7B-Temperature Calibration 0X7C-Humidity Calibration 0X7D-Light Threshold Alarm Config 0X7E-Light Tolerance Value 0X7F-Tilt Threshold Alarm Config 0X80-Falling Alarm Config 0X82-Probe Id Retransmit Count 0XBE00-Cellular StatusRegister Status 0XBE01-Cellular StatusSIM State 0XBE02-Cellular StatusIMEI 0XBE03-Cellular StatusIMSI 0XBE04-Cellular StatusICCID 0XBE05-Cellular StatusSignal Strength 0XBE06-Cellular StatusServer Status 0XBE11-Cellular StatusMilesight MQTT Status 0XBE15-Cellular StatusMilesight DTLS Status 0XCE3F-Cellular SettingsWork Mode 0XCE42-Cellular SettingsTransport Type 0XCE4100-Cellular SettingsAPN 0XCE4101-Cellular SettingsAuthentication Mode 0XCE4102-Cellular SettingsUsername 0XCE4103-Cellular SettingsPassword 0XCE4104-Cellular SettingsPIN 0XCE4105-Cellular SettingsNetwork Type 0XCE0000-Cellular SettingsBroker Address 0XCE0001-Cellular SettingsPort 0XCE0002-Cellular SettingsKeepalive Interval 0XCE0003-Cellular SettingsClient ID 0XCE0004-Cellular SettingsUser Credentials Enable 0XCE0005-Cellular SettingsUsername 0XCE0006-Cellular SettingsPassword 0XCE0007-Cellular SettingsTLS Enable 0XCE0008-Cellular SettingsCA File Enable 0XCE0009-Cellular SettingsCA File Length 0XCE000A-Cellular SettingsCA File 0XCE000B-Cellular SettingsClient Certificate Enable 0XCE000C-Cellular SettingsClient Certificate Length 0XCE000D-Cellular SettingsClient Certificate 0XCE000E-Cellular SettingsClient Key Enable 0XCE000F-Cellular SettingsClient Key Length 0XCE0010-Cellular SettingsClient Key 0XCE0011-Cellular SettingsUplink Topic 0XCE0012-Cellular SettingsUplink QoS 0XCE0013-Cellular SettingsDownlink Topic 0XCE0014-Cellular SettingsDownlink QoS 0XCE0021-Cellular SettingsMQTT Status 0XCE0200-Cellular SettingsBroker Address 0XCE0201-Cellular SettingsPort 0XCE0202-Cellular SettingsKeepAlive Interval 0XCE0209-Cellular SettingsCA File Length 0XCE020A-Cellular SettingsCA Certificate 0XCE020C-Cellular SettingsClient Certificate Length 0XCE020D-Cellular SettingsClient Certificate 0XCE020F-Cellular SettingsClient Key Length 0XCE0210-Cellular SettingsClient Key 0XCE0221-Cellular SettingsAWS Status 0XCE0121-Cellular SettingsMilesight MQTT Status 0XCE1900-Cellular SettingsMilesight DTLS Status } }