NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
NimBLEScanCallbacks Class Reference

A callback handler for callbacks associated device scanning. More...

#include <NimBLEScan.h>

Public Member Functions

virtual void onDiscovered (const NimBLEAdvertisedDevice *advertisedDevice)
 Called when a new device is discovered, before the scan result is received (if applicable).
 
virtual void onResult (const NimBLEAdvertisedDevice *advertisedDevice)
 Called when a new scan result is complete, including scan response data (if applicable).
 
virtual void onScanEnd (const NimBLEScanResults &scanResults, int reason)
 Called when a scan operation ends.
 

Detailed Description

A callback handler for callbacks associated device scanning.

Member Function Documentation

◆ onDiscovered()

void NimBLEScanCallbacks::onDiscovered ( const NimBLEAdvertisedDevice advertisedDevice)
virtual

Called when a new device is discovered, before the scan result is received (if applicable).

Parameters
[in]advertisedDeviceThe device which was discovered.

◆ onResult()

void NimBLEScanCallbacks::onResult ( const NimBLEAdvertisedDevice advertisedDevice)
virtual

Called when a new scan result is complete, including scan response data (if applicable).

Parameters
[in]advertisedDeviceThe device for which the complete result is available.

◆ onScanEnd()

void NimBLEScanCallbacks::onScanEnd ( const NimBLEScanResults scanResults,
int  reason 
)
virtual

Called when a scan operation ends.

Parameters
[in]scanResultsThe results of the scan that ended.
[in]reasonThe reason code for why the scan ended.