nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
gattp.h File Reference
#include <zephyr/bluetooth/gatt.h>
#include <zephyr/bluetooth/conn.h>
#include <bluetooth/gatt_dm.h>

Go to the source code of this file.

Data Structures

struct  bt_gattp_handle_range
 Structure for Service Changed handle range. More...
 
struct  bt_gattp
 GATT profile instance. More...
 

Typedefs

typedef void(* bt_gattp_indicate_cb) (struct bt_gattp *gattp, const struct bt_gattp_handle_range *handle_range, int err)
 Service Changed Indication callback function.
 

Functions

int bt_gattp_init (struct bt_gattp *gattp)
 Initialize the GATT profile instance.
 
int bt_gattp_handles_assign (struct bt_gatt_dm *dm, struct bt_gattp *gattp)
 Assign handles to the GATT profile instance.
 
int bt_gattp_subscribe_service_changed (struct bt_gattp *gattp, bt_gattp_indicate_cb func)
 Subscribe to the Service Changed indication.
 
int bt_gattp_unsubscribe_service_changed (struct bt_gattp *gattp)
 Unsubscribe from the Service Changed indication.