Hello. I'm trying to get the current SIM's mobile number. I believe this is done via sending AT commands to the GSM Shield. However I am very much a newbie with Arduino and C++. How do I send my own AT commands to the GSM Shield using the functions in the library?
I believe I will use something like gsm.SimpleWriteln() and gsm.read() but I can't make it work. I want it to particularly get the mobile number (I believe it is AT+CNUM). I want to send this command and then read the response to get the mobile number. How can I do this? Thank you.
If you want to use directly AT commands, you don't need this library. Use SoftwareSerial (or Serial if you connect your SIM900 shield to pins 0 and 1). And do simply read()/write() commands of these classes.
Hello. I'm trying to get the current SIM's mobile number. I believe this is done via sending AT commands to the GSM Shield. However I am very much a newbie with Arduino and C++. How do I send my own AT commands to the GSM Shield using the functions in the library?
I believe I will use something like
gsm.SimpleWriteln()
andgsm.read()
but I can't make it work. I want it to particularly get the mobile number (I believe it is AT+CNUM). I want to send this command and then read the response to get the mobile number. How can I do this? Thank you.