我想收到短信,但我不知道如何收到短信请检查我的代码。
Dim receivedData, smsMode as String
smsMode = vbCrLf
port.Write("AT+CNMI=2,1,0,0,1")
Thread.Sleep(1000)
port.Write("AT+CMGR" & smsMode)
Thread.Sleep(1000)
port.Write("AT+CMGL=" & "ALL" & smsMode)
Thread.Sleep(1000)
我想在DataGridView中显示新消息。我不知道该怎么称呼
receivedData = port.read, readexisting
等