PebbleOS v4.47.0-757-g12b6c531f
Loading...
Searching...
No Matches
GAP client

Client of the Generic Access service of a peer. More...

Typedefs

typedef void(* pbl_bt_gapc_name_cb_t) (uint16_t conn_handle, const char *name)
 Called with the device name of a peer, on the host task.
 

Functions

void pbl_bt_gapc_read_name (uint16_t conn_handle, pbl_bt_gapc_name_cb_t cb)
 Read the device name of a peer.
 

Detailed Description

Client of the Generic Access service of a peer.

Typedef Documentation

◆ pbl_bt_gapc_name_cb_t

typedef void(* pbl_bt_gapc_name_cb_t) (uint16_t conn_handle, const char *name)

Called with the device name of a peer, on the host task.

Parameters
conn_handleConnection.
nameThe name, cut to what fits PBL_BT_DEVICE_NAME_BUFFER_SIZE; valid during the call.

Function Documentation

◆ pbl_bt_gapc_read_name()

void pbl_bt_gapc_read_name ( uint16_t  conn_handle,
pbl_bt_gapc_name_cb_t  cb 
)

Read the device name of a peer.

Parameters
conn_handleConnection.
cbCalled with the name. Not called if it cannot be read.