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
BTEnableService (Function)
In French: BTActiveService
Enables a service provided by a Bluetooth device.
Example
nDeviceNumber is int
sService is string
// The devices are stored in a table
nDeviceNumber = TABLE_Device.COL_ID[TABLE_Device]
// The services are displayed in a list
sService = LIST_Services[LIST_Services]
// Enable the service selected in the list
IF BTEnableService(nDeviceNumber, sService) = True THEN
// Fill the list of enabled services
ListAdd(LIST_EnabledServices, sService)
ELSE
 Trace("Device: " + nDeviceNumber + ", service: " + sService)
 Info(ErrorInfo(errFullDetails))
END
Syntax
<Result> = BTEnableService(<Device Identifier> , <Service Name> [, <Radio Identifier>])
<Result>: Boolean
  • True if the service was enabled,
  • False otherwise. ErrorInfo returns more details about the problem.
<Device Identifier>: Integer
Identifier of the Bluetooth device to use. This identifier is returned by BTListDevice.
<Service Name>: Character string (with quotes)
Name of the service to enable. The name of the services is returned by BTListService.
<Radio Identifier>: Optional integer
Identifier of the Bluetooth radio to use. This identifier is returned by BTListRadio. If this parameter is not specified, all the available radios will be used.
Remarks
Only the Microsoft and Bluesoleil bluetooth stacks are supported by this version. To find out the stack used, call BTStack.
See Which stacks to use? for more details
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment