Platforms to show: All Mac Windows Linux Cross-Platform
WindowsBluetoothLEAdvertisementWatcherMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Bluetooth | MBS WinFrameworks Plugin | 22.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
- 2 events
- event Received(Args as WindowsBluetoothLEAdvertisementReceivedEventArgsMBS)
- event Stopped(Error as Integer)
- 7 properties
- property Handle as Integer
- property MaxOutOfRangeTimeout as Int64
- property MaxSamplingInterval as Int64
- property MinOutOfRangeTimeout as Int64
- property MinSamplingInterval as Int64
- property ScanningMode as Integer
- property Status as Integer
- 4 methods
- method Constructor
- method Destructor
- method Start
- method Stop
- shared method Available as Boolean
- 17 constants
Errors
Constant | Value | Description |
---|---|---|
ErrorConsentRequired | 8 |
The operation requires consent. |
ErrorDeviceNotConnected | 3 |
The operation cannot be completed because the remote device is not connected. |
ErrorDisabledByPolicy | 5 |
The operation is disabled by policy. |
ErrorDisabledByUser | 7 |
The operation is disabled by the user. |
ErrorNotSupported | 6 |
The operation is not supported on the current Bluetooth radio hardware. |
ErrorOtherError | 4 |
An unexpected error has occurred. |
ErrorRadioNotAvailable | 1 |
The Bluetooth radio was not available. This error occurs when the Bluetooth radio has been turned off. |
ErrorResourceInUse | 2 |
The operation cannot be serviced because the necessary resources are currently in use. |
ErrorSuccess | 0 |
The operation was successfully completed or serviced. |
ErrorTransportNotSupported | 9 |
The transport is not supported. |
Scan modes
Constant | Value | Description |
---|---|---|
ScanningModeActive | 1 |
Specifies an active scanning mode. This indicates that scan request packets will be sent from the platform to actively query for more advertisement data of type ScanResponse. |
ScanningModePassive | 0 |
Specifies a passive scanning mode. This is the default scanning mode. |
Status
Constant | Value | Description |
---|---|---|
StatusAborted | 4 |
An error occurred during transition or scanning that stopped the watcher due to an error. |
StatusCreated | 0 |
The initial status of the watcher. |
StatusStarted | 1 |
The watcher is started. |
StatusStopped | 3 |
The watcher is stopped. |
StatusStopping | 2 |
The watcher stop command was issued. |
This class has no sub classes.
Some examples using this class:
Blog Entries
- The Top 10 from the MBS Xojo Plugins in 2022
- Bluetooth LE on Windows
- BluetoothLE Watcher on Windows
- News from the MBS Xojo Plugins Version 22.2
- MBS Xojo Plugins, version 22.2pr6
The items on this page are in the following plugins: MBS WinFrameworks Plugin.
WindowsBluetoothLEAdvertisementReceivedEventArgsMBS - WindowsBluetoothLEAppearanceMBS