
Chapter 18. Bluetooth
475
OPEN "COM4:S"
Open the Bluetooth communications device file with the
BHT as a slave and wait for a master
Syntax:
Syntax:Syntax:
Syntax:
OPEN "COM4:S, serviceprofile [, [passkey][, [timeout][,
[securitymode]]]]" AS [#]filenumber
Parameter:
Parameter:Parameter:
Parameter:
serviceprofile
SPP
passkey
Character string, Max. 16 bytes.
timeout
Integer from 1 to 255.
securitymode
Integer from 1 to 3.
filenumber
A numeric expression which returns a value from 1 to 16.
Description:
Description:Description:
Description:
This statement opens the Bluetooth communications device file with the BHT as a
slave and wait for inquiries and connection requests from masters. (Inquiry Scan
Enable and Page Scan Enable)
All subsequent I/O and other operations involving the Bluetooth interface use the
filenumber.
Comentarios a estos manuales