Help / WLanguage / WLanguage functions / Communication / Bluetooth
  • Overview
  • How to?
  • Several groups of functions allow you to communicate by Bluetooth:
  • Which keys should be used?
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Managing the Bluetooth keys
Create a new type of application! With no contact between the PC and the mobile device, several processes can be run on the PC by using the data found on the mobile device.
For example:
  • An application on PC (or mobile device) can emulate services on a device that supports the bluetooth standard.
  • An application can automatically retrieve photos from a cell phone.
  • An application can read the list of contacts found on a cell phone.
  • A PC can print the data found on a PDA.
How to?

Several groups of functions allow you to communicate by Bluetooth:

  • The Bluetooth functions (BTxxx): These functions allow you to manage the Bluetooth devices. You can for example list the services found on a device, and enable or disable them. You can also authenticate toward a Bluetooth device and get various information about the device.
  • The OBEXxxx functions: These functions allow you to manage the exchanges of files via the OBEX protocol. The OBEX protocol is a protocol for exchanging data via Infrared and Bluetooth.
  • SocketConnectBluetooth and SocketCreateBluetooth that allow you to manage the sockets that use the Bluetooth devices.
Which keys should be used?
The functions allowing you to handle the Bluetooth keys operate with the keys that use a protocol stack issued by Microsoft or Bluesoleil. To get the stack used, call BTStack.
Some WLanguage functions can only be used with some types of stacks. This information is presented in details in each relevant WLanguage function.

The following keys use a Microsoft stack (without installing to driver supplied with the keys):
  • D-Link DBT-120,
  • Broadcom Bluetooth 2.0 EDR USB,
  • EMTEC Dongle Bluetooth 2.0 EDR - EKCOB110,
  • HAMA Nano Bluetooth Adapter 2.0 EDR - 10m,
  • Conceptronic Dongle Bluetooth 2.0 EDR - CBT200U2A,
  • Kensington Bluetooth USB Micro Adapter (Bluetooth 2.0 - USB 2.0),
  • (*) Belkin Bluetooth 2.0 Adapter - F8T013FR1 - 10-meter range (USB 2.0),
  • (*) Belkin Bluetooth 2.0 Adapter - F8T012FR1 - 100-meter range (USB 2.0),
  • TrendNet TBW-104UB - USB Bluetooth 2.0 Adapter,
  • (*) TrendNet TBW-102UB - Bluetooth Class 2 Adapter (Bluetooth 1.1), ...
This list is not exhaustive and it will be updated on a regular basis.
(*) Some keys do not directly operate in Windows, a driver must be installed via the following operating mode:
  1. if it was installed, uninstall the driver supplied with the key via "Add/Remove programs" found in the Control Panel,
  2. insert the CD supplied with the key in the drive, DO NOT start its automatic execution,
  3. connect the key,
  4. ask Windows to find the driver on the CD.
This method allows you to have a key recognized by Windows and therefore to use a Microsoft stack.
Related Examples:
WD Bluetooth Training (WINDEV): WD Bluetooth
[ + ] WINDEV provides you with some Bluetooth management functions.
All types of Bluetooth devices can be managed from your WINDEV applications: cell phones, printers, speakers, and so on.
This example presents the use of these Bluetooth functions:
- to list the accessible Bluetooth devices
- to list the services proposed by a device
- to connect to a Bluetooth device
- to send a file to a device via the "OBEX" functions of WLanguage.
WM System Cross-platform examples (WINDEV Mobile): WM System
[ + ] This application is an example of some of the features of WINDEV Mobile available for Android/iOS.
The following system functions are used:
- Multimedia control
- Brightness
- Volume
- Wi-Fi
- Bluetooth
- Toast
- Compass
- Accelerometer
- Camera control
- Vibration
- Notifications
- Drawing functions
- Internet
Minimum version required
  • Version 12
This page is also available for…
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help