
Chapter 18. Bluetooth
457
auh% = .soPPPPAP ' PPP authentication procedure: PAP
usr$ = "USER" ' User name for PPP authentication
psw$ = "PASSWORD" ' Password for PPP authentication
CALL "SOCKET.FN3" .fcTCnnUsr Interface%,ip$,msk$,gw$,auh%,usr$,psw$
' Data and file transfers over socket interface
'Omitted
' Disconnect TCP/IP communications pathway
CALL "SOCKET.FN3" .fcTDiscnn Interface%
' Disconnect data link
PRINT #4, "+++" ' Transmit escape command "+++"
' Wait for "OK"
' For details about the reading data received,
' refer to Section 18.2.4.2 "Reading data received in serial communications."
PRINT #4, "ATH" ' Transmit disconnect command "ATH"
' Wait for "OK"
' For details about the reading data received,
' refer to Section 18.2.4.2 "Reading data received in serial communications."
' Disconnect modem and close Bluetooth communications device file
CLOSE #4
END
• The above procedure assumes that the modem uses standard AT
commands and response messages. Consult the modem's User's
Manual for the strings used.
•
This Dial-up Networking Profile does not support slave (GW) operation
because the BHT does not have a built-in modem.
Kommentare zu diesen Handbüchern