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
BTInfoRadio (Function)
In French: BTInfoRadio
Returns specific information about a Bluetooth radio connected to the computer.
Example
sListRadios is string
sARadio is string
sId is string
sName is string
sMACAddress is string
// Clears the list
TableDeleteAll(TABLE_Radios)
// Returns the list of radios
sListRadios = BTListRadio(btSimpleList)
// Browse the radios
FOR EACH STRING sARadio OF sListRadios SEPARATED BY CR
// Stores the device information
sId = ExtractString(sARadio, 1)
sName = ExtractString(sARadio, 3)
sMACAddress = ExtractString(sARadio, 2)
// The name is explicitly requested if it is not specified
IF sName ~= "" THEN sName = BTInfoRadio(sId, btName)
// Fills the Table control with the radios
TableAddLine(TABLE_Radios, False, sId, sName, sMACAddress)
END
Syntax
<Result> = BTInfoRadio(<Radio Identifier> , <Requested Information>)
<Result>: Character string
Requested information about the specified radio.
<Radio Identifier>: Integer
Identifier of the Bluetooth radio to use. This identifier is returned by BTListRadio.
<Requested Information>: Integer constant
Information about the radio. The table below lists the available information as well as the values that can be returned:
btMACAddressMAC address of the device
btClassOfServiceClass of service, may correspond to one of the following constants (or to a combination of constants):
  • btCoS_Capturing: Device for acquiring data (scanner, microphone, ...).
  • btCoS_Audio: Audio device (microphone, speaker, ...).
  • btCoS_Information: Information service (WEB or WAP server, ...).
  • btCoS_Positioning: Positioning device (GPS, ...).
  • btCoS_Network: Network device (access point, ...).
  • btCoS_Rendering: Printer, speaker.
  • btCoS_Telephony: Telephony device (phone, modem, ...).
  • btCoS_Transfer: Medium for transfer (memory card, ...).
btClassOfDeviceClass of the device, may correspond to one of the following constants:
  • btCoD_NetworkAccess
  • btCoD_AudioVideo
  • btCoD_Miscellaneous
  • btCoD_Imaging
  • btCoD_Unknown
  • btCoD_Toy
  • btCoD_Computer
  • btCoD_Device
  • btCoD_Phone
  • btCoD_Wearable
btManufacturerName of the manufacturer.
btIdClassOfServiceNumeric value (integer on 11 bits) corresponding to the class of service.
btIdManufacturerIdentifier of the manufacturer.
btIdMajorClassOfDeviceNumeric value (integer on 5 bits) corresponding to the major number of the class of device.
btIdMinorClassOfDeviceNumeric value (integer on 6 bits) corresponding to the minor number of the class of device.
btIdVersionVersion number set by the manufacturer.
btNameName of the radio.
Remarks
Only the Microsoft, Bluesoleil and Broadcom (Widcomm) bluetooth stacks are supported by this version. To find out the stack used, call BTStack.
The Broadcom (Widcomm) stacks are not available in 64 bits.
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