drivers/nble: Fix not being able to register CEP attributes
Registering CEP attributes was not possible because bt_gatt_attr_read_cep was not implemented causing the following error: bt: bt_gatt_register: Failed to read attr: -71 Change-Id: Ib0860cf657d6a6001c1fd4dd2712ac7361edee1c Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
922b83ac38
commit
a1bac54378
1 changed files with 5 additions and 1 deletions
|
@ -328,7 +328,11 @@ int bt_gatt_attr_read_cep(struct bt_conn *conn,
|
|||
const struct bt_gatt_attr *attr, void *buf,
|
||||
uint16_t len, uint16_t offset)
|
||||
{
|
||||
return -ENOSYS;
|
||||
struct bt_gatt_cep *value = attr->user_data;
|
||||
uint16_t props = sys_cpu_to_le16(value->properties);
|
||||
|
||||
return bt_gatt_attr_read(conn, attr, buf, len, offset, &props,
|
||||
sizeof(props));
|
||||
}
|
||||
|
||||
int bt_gatt_attr_read_cud(struct bt_conn *conn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue