Code: |
Dim ATOK As Boolean Public Sub SendATCommand(ATCommand As String) Dim strbuffer As String ATOK = False frmMain.comPhone.Output = ATCommand + vbCr Do GetPhoneData DoEvents Loop Until ATOK = True End Sub |
Code: |
If InStr(strbuffer, "OK") Then ATOK = True End If |
Code: |
frMain.comPhone.Output = |
Code: |
SendATCommand("AT+CPBR=1") |
Code: |
frMain.comPhone.Output = "AT+CPBR=1" & vbCr |
Code: |
SendATCommand("AT+CPBR=1") |