Skip to content
ezeioDocs
  1. Reference
  2. Script reference
  3. Alarms

GetAlarmState

Return the current state of the alarm

Description#

GetAlarmState( alarmno )

Fetch the state of a given alarm.

Parameters#

alarmno The alarm number

Return value#

Returns the current state of the alarm. 1=alarm is active. 0=alarm is not active.

Example usage#

   if(GetAlarmState(10)) {
     // logic to run if alarm is active
   }

Last updated Sep 2, 2019