PebbleOS
Loading...
Searching...
No Matches
Functions
Local identity

Local device name and addresses. More...

Functions

void pbl_bt_id_set_local_device_name (const char device_name[PBL_BT_DEVICE_NAME_BUFFER_SIZE])
 Set the local device name, served by the GAP service.
 
void pbl_bt_id_copy_local_identity_address (struct pbl_bt_addr *addr_out)
 Get the local identity address.
 
void pbl_bt_set_local_address (bool allow_cycling, const struct pbl_bt_addr *pinned_address)
 Configure the address used on air.
 
void pbl_bt_id_copy_chip_info_string (char *dest, size_t dest_size)
 Get a human-readable string identifying the Bluetooth chip.
 
bool pbl_bt_id_generate_private_resolvable_address (struct pbl_bt_addr *address_out)
 Generate a resolvable private address from the local IRK.
 

Detailed Description

Local device name and addresses.

Function Documentation

◆ pbl_bt_id_copy_chip_info_string()

void pbl_bt_id_copy_chip_info_string ( char *  dest,
size_t  dest_size 
)

Get a human-readable string identifying the Bluetooth chip.

Used by manufacturing for part tracking. The NimBLE backend returns "NimBLE".

Parameters
[out]destBuffer to copy the string into.
dest_sizeSize of dest in bytes.

◆ pbl_bt_id_copy_local_identity_address()

void pbl_bt_id_copy_local_identity_address ( struct pbl_bt_addr *  addr_out)

Get the local identity address.

Parameters
[out]addr_outThe address.

◆ pbl_bt_id_generate_private_resolvable_address()

bool pbl_bt_id_generate_private_resolvable_address ( struct pbl_bt_addr *  address_out)

Generate a resolvable private address from the local IRK.

The NimBLE backend returns an all-zero address.

Parameters
[out]address_outThe address.
Returns
true on success.

◆ pbl_bt_id_set_local_device_name()

void pbl_bt_id_set_local_device_name ( const char  device_name[PBL_BT_DEVICE_NAME_BUFFER_SIZE])

Set the local device name, served by the GAP service.

Parameters
device_nameNUL-terminated name.

◆ pbl_bt_set_local_address()

void pbl_bt_set_local_address ( bool  allow_cycling,
const struct pbl_bt_addr *  pinned_address 
)

Configure the address used on air.

This is not the identity address. Called with bt_lock() held. Does nothing in the NimBLE backend.

Parameters
allow_cyclingtrue if the controller may cycle the address, which implies no pinning.
pinned_addressAddress to use, or NULL for any.