HostConnected (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

1.00 / 1.00.00


This function checks whether the RTCU module is connected to a PC with the RTCU M2M Studio program running (or any other RACP1-capable program).

The HostConnected function will not indicate when the RTCU M2M Studio is connected to the device via the RTCU Communication Hub.

 

Input:

None.

 

Returns:_BOOL

TRUE:

Connected to a PC with the RTCU M2M Studio running.

FALSE:

Not connected.

 

Declaration:

FUNCTION HostConnected : BOOL;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
   ...
   // Check for connection to RTCU M2M Studio
   IF HostConnected() THEN
      // RTCU is connected to the RTCU M2M Studio
      ...
   ELSE
      // RTCU is NOT connected to a PC with RTCU M2M Studio running
      ...
   END_IF;
 
END;
 
END_PROGRAM;