PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
BTListService (Function)
In French: BTListeService
Returns the list of services provided by a Bluetooth device.
Example
nDeviceNumber is int
sListServices is string
sTmpString is string
// Clears the LIST_Services control
ListDeleteAll(LIST_Services)
// Returns the list of services for the selected device
IF TableSelect(TABLE_Devices) <> -1 THEN
// Identifier of the device
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
ListAdd(LIST_Services, sTmpString)
END
ELSE
Info("Select a Bluetooth device")
END
Syntax
<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 by BTSelectDevice.
<Level of Details>: Optional Integer constant
Level of details for the result:
btDetailedList<Result> contains the list of services in detailed mode.
btSimpleList
(Default value)
<Result> contains the list of services in simple mode.
<Radio Identifier>: Optional integer
Identifier of the Bluetooth radio to use. This identifier is returned by BTListRadio.
Windows Mobile This parameter must not be specified. Indeed, a single Bluetooth radio is available for the mobile devices.
Remarks
  • Windows Only the Microsoft, Bluesoleil and Broadcom (Widcomm) bluetooth stacks are supported by this version. The Broadcom (Widcomm) stacks are not available in 64 bits.
  • Windows Mobile Only the Microsoft bluetooth stacks are supported by this function. In most cases, the Broadcom stacks (Widcomm) are not supported (except for some rare cases).
  • To find out the stack used, call BTStack. See Which stacks to use? for more details
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment