Table of Contents

Class BluetoothLEAdvertisementWatcher

Namespace
nanoFramework.Device.Bluetooth
Assembly
nanoFramework.Device.Bluetooth.dll

A class to receive Bluetooth Low Energy (LE) advertisements.

public class BluetoothLEAdvertisementWatcher
Inheritance
BluetoothLEAdvertisementWatcher
Inherited Members
Extension Methods

Constructors

BluetoothLEAdvertisementWatcher()

Creates a new BluetoothLEAdvertisementWatcher object.

public BluetoothLEAdvertisementWatcher()

BluetoothLEAdvertisementWatcher(BluetoothLEAdvertisementFilter)

Creates a new BluetoothLEAdvertisementWatcher object with an advertisement filter to initialize the watcher.

public BluetoothLEAdvertisementWatcher(BluetoothLEAdvertisementFilter advertisementFilter)

Parameters

advertisementFilter BluetoothLEAdvertisementFilter

The advertisement filter to initialize the watcher.

Properties

AdvertisementFilter

Gets or sets a BluetoothLEAdvertisementFilter object used for configuration of Bluetooth LE advertisement filtering that uses payload section-based filtering.

public BluetoothLEAdvertisementFilter AdvertisementFilter { get; set; }

Property Value

BluetoothLEAdvertisementFilter

ScanningMode

Gets or sets the Bluetooth LE scanning mode.

public BluetoothLEScanningMode ScanningMode { get; set; }

Property Value

BluetoothLEScanningMode

SignalStrengthFilter

Gets or sets a BluetoothSignalStrengthFilter object used for configuration of Bluetooth LE advertisement filtering that uses signal strength-based filtering.

public BluetoothSignalStrengthFilter SignalStrengthFilter { get; set; }

Property Value

BluetoothSignalStrengthFilter

Status

Gets the current status of the BluetoothLEAdvertisementWatcher.

public BluetoothLEAdvertisementWatcherStatus Status { get; }

Property Value

BluetoothLEAdvertisementWatcherStatus

Methods

Start()

Start the BluetoothLEAdvertisementWatcher to scan for Bluetooth LE advertisements.

public void Start()

Stop()

Stop the BluetoothLEAdvertisementWatcher and disable the scanning for Bluetooth LE advertisements.

public void Stop()

Events

Received

Notification for new Bluetooth LE advertisement events received.

public event BluetoothLEAdvertisementWatcher.BluetoothLEAdvertisementReceivedHandler Received

Event Type

BluetoothLEAdvertisementWatcher.BluetoothLEAdvertisementReceivedHandler

Stopped

Notification to the application that the Bluetooth LE scanning for advertisements has been canceled or aborted either by the application or due to an error.

public event BluetoothLEAdvertisementWatcher.BluetoothLEAdvertisementStoppedEvenHandler Stopped

Event Type

BluetoothLEAdvertisementWatcher.BluetoothLEAdvertisementStoppedEvenHandler