So I was doing my project using GSM shield for my arduino. And I want to use VB.net to send data to my arduino like who I want to message and my message contents.
This is my code for my Arduino.
Serial.begin(2400); //Baud rate of the GSM/GPRS Module Serial.print("\r"); delay(1000); Serial.print("AT+CMGF=1\r"); delay(1000); Serial.print("AT+CMGS=\"+63921xxxxxxx\"\r"); //Number to which you want to send the sms delay(1000); Serial.print("hello world - Arduino\r"); //The text of the message to be sent delay(1000); Serial.write(0x1A); delay(1000);
Can somebody help me on using VB interface and send commands to my Arduino via SerialPort. Please? Thanks.