esp-nimble-cpp 2.0.2
Loading...
Searching...
No Matches
NimBLEExtAdvertisingCallbacks Class Reference

Callbacks associated with NimBLEExtAdvertising class. More...

#include <NimBLEExtAdvertising.h>

Public Member Functions

virtual void onStopped (NimBLEExtAdvertising *pAdv, int reason, uint8_t instId)
 Handle an advertising stop event.
 
virtual void onScanRequest (NimBLEExtAdvertising *pAdv, uint8_t instId, NimBLEAddress addr)
 Handle a scan response request. This is called when a scanning device requests a scan response.
 

Detailed Description

Callbacks associated with NimBLEExtAdvertising class.

Member Function Documentation

◆ onScanRequest()

void NimBLEExtAdvertisingCallbacks::onScanRequest ( NimBLEExtAdvertising pAdv,
uint8_t  instId,
NimBLEAddress  addr 
)
virtual

Handle a scan response request. This is called when a scanning device requests a scan response.

Parameters
[in]pAdvA convenience pointer to the extended advertising interface.
[in]instIdThe instance ID of the advertisement that the scan response request was made.
[in]addrThe address of the device making the request.

◆ onStopped()

void NimBLEExtAdvertisingCallbacks::onStopped ( NimBLEExtAdvertising pAdv,
int  reason,
uint8_t  instId 
)
virtual

Handle an advertising stop event.

Parameters
[in]pAdvA convenience pointer to the extended advertising interface.
[in]reasonThe reason code for stopping the advertising.
[in]instIdThe instance ID of the advertisement that was stopped.