on-internet
← Community

Sending SMS through GSM modem to mobile phone

Stack Overflow ·

Using VB.NET I need to send a SMS using GSM modem to a mobile phone. Currently I have the following code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If serialport.IsOpen Then serialport.Close() End If Try With serialport .PortName = ComboBox1.Text .BaudRate = 96000 .Parity = Parity.None .DataBits = 8 .StopBits = StopBits.One .Handshake = Handshake.RequestToSend .DtrEnable = True .RtsEnable = True .NewLine = vbCrLf End With serialport.Open() Catch ex As Exception End Try serialport.WriteLine("AT+CMGF=1" & vbCr) System.Threading.Th

Comments

Sign in or sign up to comment and upvote.

No comments yet.