Event generated when an advertising packet is seen during passive scanning or a scan response is received during active scanning.
More...
#include <Events.h>
Event generated when an advertising packet is seen during passive scanning or a scan response is received during active scanning.
- See also
- ble::Gap::EventHandler::onPeriodicAdvertisingReport()
Definition at line 40 of file Events.h.
◆ getType()
const advertising_event_t & getType |
( |
| ) |
const |
Get event type.
Definition at line 89 of file Events.h.
◆ getPeerAddressType()
Get peer address type.
Definition at line 95 of file Events.h.
◆ getPeerAddress()
Get peer address.
Definition at line 101 of file Events.h.
◆ getPrimaryPhy()
const phy_t & getPrimaryPhy |
( |
| ) |
const |
Get primary PHY.
Definition at line 107 of file Events.h.
◆ getSecondaryPhy()
const phy_t & getSecondaryPhy |
( |
| ) |
const |
Get secondary PHY.
Definition at line 113 of file Events.h.
◆ getSID()
advertising_sid_t getSID |
( |
| ) |
const |
Get advertising set identifier.
Definition at line 119 of file Events.h.
◆ getTxPower()
advertising_power_t getTxPower |
( |
| ) |
const |
◆ getRssi()
Get received signal strength.
Definition at line 131 of file Events.h.
◆ isPeriodicIntervalPresent()
bool isPeriodicIntervalPresent |
( |
| ) |
const |
Indicate if periodic interval is valid.
Definition at line 137 of file Events.h.
◆ getPeriodicInterval()
periodic_interval_t getPeriodicInterval |
( |
| ) |
const |
◆ getDirectAddressType()
Get target address type in directed advertising.
Definition at line 148 of file Events.h.
◆ getDirectAddress()
Get target address in directed advertising.
Definition at line 154 of file Events.h.
◆ getPayload()
const mbed::Span< const uint8_t > & getPayload |
( |
| ) |
const |
◆ setPeerAddress()
void setPeerAddress |
( |
const address_t & |
newPeerAddress | ) |
|
Set peer address.
Definition at line 166 of file Events.h.
◆ setPeerAddressType()
Set peer address type.
Definition at line 175 of file Events.h.
◆ setAdvertisingData()
void setAdvertisingData |
( |
const mbed::Span< const uint8_t > & |
newAdvertisingData | ) |
|
Set new advertising payload.
Definition at line 183 of file Events.h.