Heavenly
Well-known member
Can anyone provide me with the right code for sending these AT commands using the new SerialPort class?
Serial Port Setup
COM2
1 start bit
8 bit data
No parity
1 stop bit
I need to send these AT commands to the device:
AT+CMGF=1 follow by a carriage return
As soon as I get this string returned
Ok
I then must send this other AT command:
AT+CMGS="7872435333" follow by a carriage return and then follow by Ctrl Z
As soon as I get this string returned, I’m done.
+CMGS: 242
OK
That’s all. Any help will be highly appreciated.
Thanks
Serial Port Setup
COM2
1 start bit
8 bit data
No parity
1 stop bit
I need to send these AT commands to the device:
AT+CMGF=1 follow by a carriage return
As soon as I get this string returned
Ok
I then must send this other AT command:
AT+CMGS="7872435333" follow by a carriage return and then follow by Ctrl Z
As soon as I get this string returned, I’m done.
+CMGS: 242
OK
That’s all. Any help will be highly appreciated.
Thanks