gwSetMedia (Function) |
Top Previous Next |
This function temporarily changes the media used to connect to the RTCU Communication Hub. This function works similarly to rchInterfaceSet.
The default media is Mobile. In case the device faults, it will try to connect to the RTCU Communication Hub using the media selected by this function.
If a non-fallback server configuration is enabled, this function must be called after gwOpen to work.
Input: media : SINT (0/1) (Default 0) Media to use for connecting to the RTCU Communication Hub.
Returns: INT
Declaration: FUNCTION gwSetMedia : INT;
Example: INCLUDE rtcu.inc |