NimBLE : Change GATT notify/indicate from gattc to gatts

This commit is contained in:
isha.pardikar@espressif.com
2022-11-08 14:02:54 +05:30
parent 86aa012c26
commit b950ddb0fd
6 changed files with 6 additions and 6 deletions
@@ -432,7 +432,7 @@ void esp_blufi_send_notify(void *arg)
struct os_mbuf *om;
om = ble_hs_mbuf_from_flat(pkts->pkt, pkts->pkt_len);
int rc = 0;
rc = ble_gattc_notify_custom(blufi_env.conn_id, gatt_values[1].val_handle, om);
rc = ble_gatts_notify_custom(blufi_env.conn_id, gatt_values[1].val_handle, om);
assert(rc == 0);
}
@@ -1253,7 +1253,7 @@ int bt_mesh_gatts_notify(struct bt_mesh_conn *conn,
om = ble_hs_mbuf_from_flat(data, len);
assert(om);
ble_gattc_notify_custom(conn_id, attr->handle, om);
ble_gatts_notify_custom(conn_id, attr->handle, om);
return 0;
}