2.21、Set Fire/Smoke Alarm Reset Parameters

Set Fire/Smoke Alarm Reset Parameters

POSTProduction: https://open.eye4cloud.com/{{open_id}}/open/v1/device/setFireSmokeAlarmReset
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
enable No int Switch: 0=off, 1=on
mode No int Mode: 0=manual reset; 1=automatic reset (the mode field is present only when enable=1)
interval No int Automatic reset interval (the interval parameter is present only when enable=1 and mode=1)
report No int Reset report: 1=report, 0=do not report
CURL Request Example
CURL
curl 'https://open.eye4cloud.com/{{open_id}}/open/v1/device/setFireSmokeAlarmReset' \
  -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

Example:

JSON
{
  "error_code": 0,
  "error_message": "success",
  "error_tips": "",
  "data": {
    "resp": 1
  }
}