owAlarmGetID (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

2.80 / 1.00.00


This function will return the ROM ID number of the alerted device previously found with owAlarmSearch.

 

Input:

None.

 

Returns: STRING

A string containing the ID of the alerted device if present or an empty string if not.

 

Declaration:

FUNCTION owAlarmGetID : STRING;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
   ...
   // Query for a device that is alerting.
   IF owAlarmSearch() < 1 THEN
      DebugMsg(message:="No alarm!");
   ELSE
      // Get ID of device
      DebugMsg(message:="Alarm on device: " + owAlarmGetID());
      // Get Family of device
      DebugMsg(message:="Device family: " + owAlarmGetFamily());
      ...
   END_IF;
END;
 
END_PROGRAM;