gsmIncomingCall (Functionblock) |
Top Previous Next |
Use this function block to check if there is an incoming voice call on the GSM module.
gsmIncomingCall() indicates that an incoming call is pending. Technically it will be 1 or 2 when RING has been received from the GSM module, and it will be cleared when the VPL application has called gsmIncomingCall(). To use it, gsmIncomingCall() should be called periodically (frequency will dictate the answer delay period), and when it returns 1 or 2, the call may be answered.
Input: None.
Output: status : INT (0..2)
phonenumber : STRING Caller id of the caller (if status is 1).
Declaration: FUNCTION_BLOCK gsmIncomingCall;
Example: INCLUDE rtcu.inc |