2.24、Fire Monitoring Settings

Fire Monitoring Settings

POSTProduction: https://open.eye4cloud.com/{{open_id}}/open/v1/device/fireMonitoringSettings
Request Data
Field Name Required Type Description
device_id Yes string Device ID
timestamp Yes int64 Timestamp in seconds
nonce Yes string Random string, 8-20 characters
sign Yes string See "Sign Generation Examples" for the implementation details
password No string Device password; if omitted, the password registered for the device on the Open Platform is used
data No string Device DATA; an empty string can be passed
imei No string Device IMEI; an empty string can be passed
command Yes int Operation type: 0 for get, 1 for set
fire_sensitivity No int Detection sensitivity: 1 low, 2 medium, 3 high
fire_type No int Alarm push switch: 0 for off, 2 for on
fire_place No int Usage scenario: 0 for indoor, 1 for outdoor
CURL Request Example
CURL
curl 'https://open.eye4cloud.com/{{open_id}}/open/v1/device/fireMonitoringSettings' \
  -H 'Content-Type: application/json' \
  --data-raw '{
    "device_id": "xxxx",
    "timestamp": 1758867195,
    "nonce": "",
    "sign": "",
    "password": ""
}'
Response Data
Field Name Type Description
error_code int Status code: 0 indicates success; other values indicate an error
error_message string Error message; success indicates a normal response
data object {}
data.resp int 1 means success; 2 means failure
data.command int Operation type: 0 for get, 1 for set
data.fire_sensitivity int Detection sensitivity: 1 low, 2 medium, 3 high
data.fire_type int Alarm push switch: 0 for off, 2 for on
data.fire_place int Usage scenario: 0 for indoor, 1 for outdoor

Example:

JSON
{
    "error_code": 0,
    "error_message": "success",
    "error_tips": "",
    "data": {
        "resp": 1,
        "command": 0,
        "fire_sensitivity": 3,
        "fire_type": 1,
        "fire_place": 0
    }
}