Hello folks,
I've written an application to send SMS through GSM mobile using AT commands.
It's not working at all. Heres the code below. Can any one tell me what I have done wrong.
Private Sub SendSMS()
Try
SMSPort.WriteLine("AT")
SMSPort.WriteLine("AT+CMGF=1" & vbCrLf)
SMSPort.WriteLine("AT+CSCA=""+9779851028801""" & vbCrLf)
SMSPort.WriteLine("AT+CMGS= ""+9779841892897"" " & vbCrLf)
SMSPort.WriteLine("hello" & vbCrLf & Chr(26))
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
End Sub