
-21-
v4.9
GSM related functions
4.11. Ringer level
This function controls the ringer level of the loudspeaker for incoming call alert. Allowed values: ‘0’ for mute and ‘1’ to ‘5’ for
volume level.
Example of use:
{
// Answers an incomming call:
_3G.ringerLevel(4);
}
This function returns:
•
‘1’ on success
•
‘0’ if error
4.12. Setting Information returned when receiving an SMS
This function configures the information returned by the module when an SMS is received. It is useful to generate interruptions
or to store data from the incoming SMS.
Example of use:
{
//Sets information returned by the module when incoming SMS
_3G.setInfoIncomingSMS();
}
This function returns:
•
‘1’ on success
•
‘0’ if error
•
‘-2’ if error with CMS error code available
•
‘-3’ if error setting the memory
•
‘-4’ if error setting the memory with CMS error code available
4.13. Setting Mode for SMS
It sets the text mode for the SMS.
Example of use:
{
//Sets text mode for sms:
_3G.setTextModeSMS();
}
This function returns:
•
‘1’ on success
•
‘0’ if error