Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
GATT authorization callback structure. More...
#include <gatt.h>
Data Fields | |
bool(* | read_authorize )(struct bt_conn *conn, const struct bt_gatt_attr *attr) |
Authorize the GATT read operation. | |
bool(* | write_authorize )(struct bt_conn *conn, const struct bt_gatt_attr *attr) |
Authorize the GATT write operation. | |
GATT authorization callback structure.
bool(* bt_gatt_authorization_cb::read_authorize) (struct bt_conn *conn, const struct bt_gatt_attr *attr) |
Authorize the GATT read operation.
This callback allows the application to authorize the GATT read operation for the attribute that is being read.
conn | Connection object. |
attr | The attribute that is being read. |
true | Authorize the operation and allow it to execute. |
false | Reject the operation and prevent it from executing. |
bool(* bt_gatt_authorization_cb::write_authorize) (struct bt_conn *conn, const struct bt_gatt_attr *attr) |
Authorize the GATT write operation.
This callback allows the application to authorize the GATT write operation for the attribute that is being written.
conn | Connection object. |
attr | The attribute that is being written. |
true | Authorize the operation and allow it to execute. |
false | Reject the operation and prevent it from executing. |