Hi guys! I am wondering about the syntax to get a user input from Processing software GUI. After getting some user input, it will be then saved in an array in the arduino code.
This is the code that I'm working with. I am using a GSM and arduino.
char *phone_no[]={"9067294339","9264196920", "9279906143"};
void setup() {
Serial.begin(115200);
delay(300);
for (int i = 0; i<=2; i++){
Serial.println("AT+CMGF=1");
delay(2000);
Serial.print("AT+CMGS="");
Serial.print(phone_no*);*
Serial.write(0x22);
*Serial.write(0x0D); // hex equivalent of Carraige return *
Serial.write(0x0A); // hex equivalent of newline
delay(2000);
Serial.print("Message");
delay(2000);
Serial.println (char(26));//the ASCII code of the ctrl+z is 26
Serial.println("message sent!");
}
}
void loop()
{
}
Thank you.