ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Bluetooth
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
BTListService (Function)
In french: BTListeService
Returns the list of services provided by a Bluetooth device.
Example
nNuméroPériph is int
sListeServices is string
sChaîneTmp is string
// Vide le champ LISTE_Services
ListDeleteAll(LISTE_Services)
// Liste les services du périphérique sélectionné
IF TableSelect(TABLE_Appareils) <> -1 THEN
	// Identifiant du périphérique
	nNuméroPériph = TABLE_Appareils.COL_ID[TABLE_Appareils]
	// Récupération de la liste des services
	sListeServices = BTListService(nNuméroPériph)
	// Ajout des services dans la liste
	FOR EACH STRING sChaîneTmp OF sListeServices SEPARATED BY CR
		ListAdd(LISTE_Services, sChaîneTmp)
	END
ELSE
	Info("Sélectionnez un périphérique Bluetooth")
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: <Nom Service 1> + RC + ... + RC + <Nom Service N>
  • in detailed mode: <Nom Service 1> + TAB + <Description Service 1> + TAB + <Identifiant Service 1> + RC + ... + <Nom Service N> + TAB + <Description Service N> + TAB + <Identifiant 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.
btSimpleList
(Default value)
<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.
Remarks
  • Windows 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?
Component: wd300com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help