This function returns the family code of the device previously found with owAlarmSearch.
Input:
None.
Returns: INT
> 0
|
|
1-Wire family code.
|
-1
|
|
1-Wire not supported on target.
|
-2
|
|
Device not found.
|
Declaration:
FUNCTION owAlarmGetFamily : INT;
Example:
INCLUDE rtcu.inc
PROGRAM test;
BEGIN
...
IF owAlarmSearch() < 1 THEN
DebugMsg(message:="No alarm!");
ELSE
DebugMsg(message:="Alarm on device: " + owAlarmGetID());
DebugMsg(message:="Device family: " + owAlarmGetFamily());
...
END_IF;
END;
END_PROGRAM;
|