PebbleOS
Loading...
Searching...
No Matches
Functions
Peer device names

Read the GAP Device Name of connected peers. More...

Functions

void pbl_bt_gap_le_device_name_request_all (void)
 Request the device name of every connected peer.
 
void pbl_bt_gap_le_device_name_request (const struct pbl_bt_device_internal *address)
 Request the device name of a connected peer.
 
void pbl_bt_store_device_name_kernelbg_cb (void *ctx)
 Persist the device name of a peer.
 

Detailed Description

Read the GAP Device Name of connected peers.

The name read is stored in the peer's GAPLEConnection. When it changed, pbl_bt_store_device_name_kernelbg_cb() is scheduled on KernelBG to persist it.

Function Documentation

◆ pbl_bt_gap_le_device_name_request()

void pbl_bt_gap_le_device_name_request ( const struct pbl_bt_device_internal *  address)

Request the device name of a connected peer.

The read is queued behind other GATT client procedures.

Parameters
addressThe peer.

◆ pbl_bt_gap_le_device_name_request_all()

void pbl_bt_gap_le_device_name_request_all ( void  )

Request the device name of every connected peer.

◆ pbl_bt_store_device_name_kernelbg_cb()

void pbl_bt_store_device_name_kernelbg_cb ( void *  ctx)

Persist the device name of a peer.

Implemented by the firmware, run on KernelBG.

Parameters
ctxstruct pbl_bt_addr of the peer, heap allocated. The callee frees it with kernel_free().