This function checks whether the GSM module is in active conversation with another phone.
Input:
None.
Returns: BOOL
TRUE:
In session with another telephone.
FALSE:
Not in session with another telephone.
Declaration:
FUNCTIONgsmOffHook :BOOL;
Example:
INCLUDE rtcu.inc PROGRAM test; // Turn on power to the GSM module, use no pin code gsmPower(power :=TRUE); BEGIN ... // Check if GSM module is in session with another telephone IFgsmOffHook() =TRUETHEN // We are connected to another telephone ... ELSE // No session active ... END_IF; END; END_PROGRAM;