PebbleOS
Loading...
Searching...
No Matches
Functions

Cycling of the local resolvable private address, and the pinned address. More...

Functions

void bt_local_addr_pause_cycling (void)
 Pause address cycling and use the pinned address (reference counted).
 
void bt_local_addr_resume_cycling (void)
 Release a bt_local_addr_pause_cycling() reference; cycling resumes at zero.
 
void bt_local_addr_pin (const struct pbl_bt_addr *addr)
 Report the local address used when a pairing requested pinning.
 
void bt_local_addr_handle_bonding_change (pbl_bt_bonding_id_t bonding, BtPersistBondingOp op)
 Handle a bonding change.
 
void bt_local_addr_init (void)
 Initialize when the stack starts, generating the pinned address if needed.
 

Detailed Description

Cycling of the local resolvable private address, and the pinned address.

A single persistent pinned address is generated once. While cycling is paused (by pairability or by bondings that require address pinning) the pinned address is used on air.

Function Documentation

◆ bt_local_addr_handle_bonding_change()

void bt_local_addr_handle_bonding_change ( pbl_bt_bonding_id_t  bonding,
BtPersistBondingOp  op 
)

Handle a bonding change.

Pauses or resumes cycling depending on whether any bonding requires address pinning.

Parameters
bondingAffected bonding.
opChange made.

◆ bt_local_addr_init()

void bt_local_addr_init ( void  )

Initialize when the stack starts, generating the pinned address if needed.

◆ bt_local_addr_pause_cycling()

void bt_local_addr_pause_cycling ( void  )

Pause address cycling and use the pinned address (reference counted).

◆ bt_local_addr_pin()

void bt_local_addr_pin ( const struct pbl_bt_addr *  addr)

Report the local address used when a pairing requested pinning.

Called by the Bluetooth driver; only checked against the pinned address and logged.

Parameters
addrLocal address used during pairing.

◆ bt_local_addr_resume_cycling()

void bt_local_addr_resume_cycling ( void  )

Release a bt_local_addr_pause_cycling() reference; cycling resumes at zero.