nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ conn_authenticated

void(* bt_fast_pair_fhn_info_cb::conn_authenticated) (struct bt_conn *conn)

Indicate that the peer was authenticated locally.

This callback is called to indicate that the connected peer was authenticated locally using the protocol defined in the FHN Accessory specification. It is triggered on a successful Read Provisioning State operation on the Beacon Actions GATT characteristic.

This callback can be used to facilitate the FHN firmware update flow by granting the authenticated connection read access to the GATT Firmware Revision characteristic that is part of the Device Information Service (DIS). By default, the read operations of the identifying information (for example, from the DIS characteristics) are blocked for unauthenticated peers. The firmware version, retrieved from the FHN accessory, may be used by the authenticated peer (smartphone) to notify the user about the outdated firmware and the pending firmware update.

This callback is executed in the cooperative thread context. You can learn about the exact thread context by analyzing the

CONFIG_BT_RECV_CONTEXT 

configuration choice. By default, this callback is executed in the Bluetooth-specific workqueue thread (

CONFIG_BT_RECV_WORKQ_BT 

).

Parameters
connAuthenticated connection object.