Configure alert

https://api.sciener.com/v3/standaloneDoorSensor/configAlertFlag

After saving the reminder configuration by calling this interface, you need to open and close the door sensor again for the configuration to take effect.

1 Request example

POST, ContentType:application/x-www-form-urlencoded

2 Request parameters

NameTypeRequiredDescription
clientIdStringYClient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
doorSensorIdIntYDoor sensor ID
notCloseAlertFlagIntYDoor not closed reminder indicator: Value range 1 - Open, 2 - Closed
notCloseAlertSecondNumIntNDoor not closed reminder time, unit: seconds, range: 1~900 seconds.
longTimeNotOpenAlertFlagIntYLong-term inactivity reminder indicator: Value range 1 - On, 2 - Off
longTimeNotOpenDayNumIntNLong-term door inactivity reminder time, unit: days, range: 1-15 days.
dateLongYCurrent time (timestamp, in milliseconds)

3 Response and example

ParameterTypeDescription
errcodeIntError code
errmsgStringError message
errmsgStringError information