SDK  23.9.2
For IoT System Software Development
Public Member Functions | List of all members
BLEAdvertisedDeviceCallbacks Class Reference

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

#include <BLEAdvertisedDevice.hpp>

Public Member Functions

virtual void onResult (BLEAdvertisedDevice advertisedDevice)
 Called when a new scan result is detected. More...
 
virtual void onResult (BLEAdvertisedDevice *advertisedDevice)
 

Detailed Description

A callback handler for callbacks associated device scanning.

When we are performing a scan as a BLE client, we may wish to know when a new device that is advertising has been found. This class can be sub-classed and registered such that when a scan is performed and a new advertised device has been found, we will be called back to be notified.

Member Function Documentation

◆ onResult()

void BLEAdvertisedDeviceCallbacks::onResult ( BLEAdvertisedDevice  advertisedDevice)
virtual

Called when a new scan result is detected.

As we are scanning, we will find new devices. When found, this call back is invoked with a reference to the device that was found. During any individual scan, a device will only be detected one time.

557 {}

The documentation for this class was generated from the following files: