NimBLE-Arduino 1.4.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 inst_id)
 Handle an advertising stop event. More...
 
virtual void onScanRequest (NimBLEExtAdvertising *pAdv, uint8_t inst_id, NimBLEAddress addr)
 Handle a scan response request. This is called when a scanning device requests a scan response. More...
 

Detailed Description

Callbacks associated with NimBLEExtAdvertising class.

Member Function Documentation

◆ onScanRequest()

void NimBLEExtAdvertisingCallbacks::onScanRequest ( NimBLEExtAdvertising pAdv,
uint8_t  inst_id,
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]inst_idThe 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  inst_id 
)
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]inst_idThe instance ID of the advertisement that was stopped.

Default callback handlers