I am trying to send SMSs using a GSM module with Arduino Mega. I have followed a tutorial and downloaded the SIM908IDE100 library. I am using the function
SendSMS(String&, const char );.
It works fine when I type:
where "1234567890" is the telephone number I want to send the SMS to and "Text message" is the text of the SMS.
If I instead try to pass to the function a String containing the telephone number
String number = "1234567890";
I get the following error:
exit status 1
no matching function for call to 'SMSGSM::SendSMS(String&, const char );'
I don't understand what String followed by an ampersand means. What am I supposed to pass the function as its first argument?