|
PebbleOS
|
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. | |
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.
| 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.
| address | The peer. |
| void pbl_bt_gap_le_device_name_request_all | ( | void | ) |
Request the device name of every connected peer.
| void pbl_bt_store_device_name_kernelbg_cb | ( | void * | ctx | ) |
Persist the device name of a peer.
Implemented by the firmware, run on KernelBG.
| ctx | struct pbl_bt_addr of the peer, heap allocated. The callee frees it with kernel_free(). |