Private Sub GSMModem_OnComm()
Dim modemInput As String
If GSMModem.CommEvent = comEvReceive Then
modemInput = GSMModem.Input
If Len(modemInput) > 0 Then
If Asc(modemInput) = 13 Or Asc(modemInput) = 10 Then
debug.print modemLine 'this the response on the modem
modemLine = ""
End If
Else
modemLine = modemLine & modemInput
End If
End If
End If
End Sub
|