Hi all. I am using the Sim 800l break out board. I all the example sketches working [sending sms etc]. What i need to know if there is a way to change the phone number that is programmed to the uno boaed via serial monitor, or to store the number to eeprom and rewrite the number if Serial is availabe. So if i want the sms to go to somone else i dont have to reprogram the uno . Can any one point me in the right direction
thank you
#include <BareBoneSim800.h>
BareBoneSim800 sim800; //
//BareBoneSim800 sim800("your APN"); //needed for gprs funtionality
void setup() {
Serial.begin(9600);
sim800.begin();
while(!Serial);
Serial.println("Testing GSM module For SMS Sending");
delay(8000); // this delay is necessary, it helps the device to be ready and connect to a network
Serial.println("Should be ready by now");
bool deviceAttached = sim800.isAttached();
if (deviceAttached)
Serial.println("Device is Attached");
else
Serial.println("Not Attached");
//Testing sending SMS aspect
const char* number = "+2347038945220";// Want to change number via Serial terminal. or store to
eeprom?
char* message = "Hello, This is a text message";
delay(1000);
bool messageSent = sim800.sendSMS(number, message);
if(messageSent)
Serial.println("Message Sent");
else
Serial.println("Not Sent, Something happened");
}
void loop() {
//zZZzz
}