Where the watch's identity address comes from.
More...
Where the watch's identity address comes from.
Implemented by the backend chosen with the NIMBLE_ID_ADDR_SOURCE Kconfig choice, available when NIMBLE_ID_ADDR is enabled. A public address is programmed into the controller by the NimBLE HCI transport, a random static one is set by pbl_bt_start().
◆ 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.
|
◆ pbl_bt_id_addr_get()
Get the identity address.
It is stable across reboots.
- Parameters
-
| [out] | addr | The address. |
| [out] | type | How the address is applied. |
- Return values
-
| 0 | on success. |
| -ENOENT | if the source has none: the controller's address is used. |
- Returns
- Another negative errno otherwise.