User`s guide
Chapter
5
BASIC
Commands
137
BT_INQUIRY$
Purpose
To search any available Bluetooth devices in range.
Syntax
A$ = BT_INQUIRY$
Remarks
It takes about 20 seconds to get the Bluetooth device information of whomever in
range. The string contains address (12 bytes) and name (20 bytes) of the devices.
Note that there might be many devices concatenated together, each occupying 32
bytes.
Information regarding the Bluetooth devices in range will be put in the format of
MENU() string as shown below:
Example
…
MENU_STR$ = BT_INQUIRY$
I% = MENU(MENU_STR$)
…
See Also
BT_PAIRING
BT_PAIRING
Purpose
To check if the device can provide a specific type of service, and (if required), the
PIN code for authentication is matching.
Syntax
A% = BT_PAIRING(addr$, type%)
Remarks
"A%" is an integer variable to be assigned to the result.
Value Meaning
1
0
Pairing successfully
Service unavailable or wrong PIN code
"addr$" is a string variable, indicating the IP address of the device.
"type%" is an integer variable, indicating a specific type of service.