Returns the list of services provided by a Bluetooth device.
nDeviceNumber is int
sListServices is string
sTmpString is string
// Clears the LIST_Services control
// Returns the list of services for the selected device
IF TableSelect(TABLE_Devices) <> -1 THEN
// Device identifier
nDeviceNumber = TABLE_Devices.COL_ID[TABLE_Devices]
// Retrieve the list of services
sListServices = BTListService(nDeviceNumber)
// Add services into the list
FOR EACH STRING sTmpString OF sListServices SEPARATED BY CR
Info("Select a Bluetooth device")
<Result> = BTListService(<Device identifier> [, <Level of details> [, <Radio identifier>]])
<Result>: Character string
List of services supported by the device. This list has the following format:
- in simple mode: <Name of Service 1> + CR + ... + CR + <Name of Service N>
- in detailed mode: <Name of Service 1> + TAB + <Description of Service 1> + TAB + <Identifier of Service 1> + CR + ... + <Name of Service N> + TAB + <Description of Service N> + TAB + <Identifier of Service N>
<Device identifier>: Integer
Identifier of the Bluetooth device to use. This identifier is returned by BTListDevice or BTSelectDevice.
<Level of details>: Optional Integer constant
Level of result details:
|btDetailedList||<Result> contains the list of services in detailed mode.|
|<Result> contains the list of services in simple mode.|
<Radio identifier>: Optional integer
Identifier of Bluetooth radio to use. This identifier is returned by BTListRadio.
- This version only supports Microsoft, Bluesoleil and Broadcom (Widcomm) bluetooth stacks. Broadcom (Widcomm) stacks are not available in 64-bit mode.
- To know the stack used, call BTStack. For more details, see Which stacks to use?