|
|
|
|
BTLEStatus (Function) In french: BTLEEtat Returns the current Bluetooth activation status on the device or asks to be notified when the activation status changes. Remarks: - To enable or disable the Bluetooth on the device, use BTActivate.
- Bluetooth functions are not available in the Android emulator.
- In Windows, use BTStatus to get the Bluetooth status.
StatusBTLE is int StatusBTLE = BTLEStatus() SWITCH StatusBTLE CASE btEnabled // Process OTHER CASE ... END Syntax
Finding out the current activation status of Bluetooth on the device Hide the details
<Result> = BTLEStatus()
<Result>: Integer constant Bluetooth LE activation status: | | btActivationInProgress | The Bluetooth is being enabled on the device. | btDeactivationInProgress | The Bluetooth is being disabled on the device. | btDisabled | The Bluetooth is disabled on the device. | btEnabled | The Bluetooth is enabled on the device. | btError | The Bluetooth activation status could not be retrieved. | btNotInitialized | The initialization of Bluetooth Low Energy was not performed. |
Enabling the notification whenever Bluetooth activation changes Hide the details
BTLEStatus(<WLanguage procedure>)
<WLanguage procedure>: Procedure name Name of the WLanguage procedure ("callback" procedure) that will be called when the Bluetooth activation status changes on the device. For more details on this procedure, see Parameters of the procedure used by BTLEStatus. If this parameter corresponds to an empty string (""), the notifications will not be sent anymore when the status changes. The function has no effect if no notification request was performed.
Related Examples:
|
Cross-platform examples (WINDEV Mobile): WM Bluetooth 4
[ + ] This example explains how to use the Bluetooth Low Energy functions (Bluetooth LE): BTLExxx. It is an application allowing you to find the nearby BTLE devices, to connect to them and to interact with the proposed services.
|
Component: wd290android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|