PebbleOS
Loading...
Searching...
No Matches
Enumerations | Functions
Identity address source

Where the watch's identity address comes from. More...

Enumerations

enum  pbl_bt_id_addr_type { PBL_BT_ID_ADDR_PUBLIC , PBL_BT_ID_ADDR_RANDOM_STATIC }
 How the identity address is applied. More...
 

Functions

int pbl_bt_id_addr_get (struct pbl_bt_addr *addr, enum pbl_bt_id_addr_type *type)
 Get the identity address.
 

Detailed Description

Where the watch's identity address comes from.

Implemented by the backend chosen with the BT_ID_ADDR_SOURCE Kconfig choice, available when BT_ID_ADDR is enabled. Read by pbl_bt_start().

Enumeration Type Documentation

◆ pbl_bt_id_addr_type

How the identity address is applied.

Enumerator
PBL_BT_ID_ADDR_PUBLIC 

Programmed into the controller, which then reports it as its public address.

PBL_BT_ID_ADDR_RANDOM_STATIC 

Set by the host as its random static address.

Function Documentation

◆ pbl_bt_id_addr_get()

int pbl_bt_id_addr_get ( struct pbl_bt_addr *  addr,
enum pbl_bt_id_addr_type *  type 
)

Get the identity address.

It is stable across reboots.

Parameters
[out]addrThe address.
[out]typeHow the address is applied.
Returns
0 on success, a negative errno otherwise.