WindowsBluetoothLEAdvertisementWatcherMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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
An object to receive Bluetooth Low Energy (LE) advertisements.
Example

// use your own subclass
Watcher = New BLEAdvertisementWatcher
// e.g. output to some listbox
Watcher.list = listWatcher

// active scanning
watcher.ScanningMode = Watcher.ScanningModeActive

// start it
Watcher.Start

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 items on this page are in the following plugins: MBS WinFrameworks Plugin.


WindowsBluetoothLEAdvertisementReceivedEventArgsMBS   -   WindowsBluetoothLEAppearanceMBS


💬 Ask a question or report a problem