Merge branch 'bugfix/notify_gattc_to_gatts' into 'master'

NimBLE : Change GATT notify/indicate from gattc to gatts

See merge request espressif/esp-idf!20872
This commit is contained in:
Rahul Tank 2022-11-09 13:43:03 +08:00
commit 2a6e789163
6 changed files with 6 additions and 6 deletions

View File

@ -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);
}

View File

@ -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;
}

@ -1 +1 @@
Subproject commit 63b114e9441b74fad228e082e6170a59194623b0
Subproject commit fc0bd89a364f96f091e0c70d7fc53aaf17b696ee

View File

@ -343,7 +343,7 @@ void ble_server_uart_task(void *pvParameters){
if (connection_handle[i] != 0) {
struct os_mbuf *txom;
txom = ble_hs_mbuf_from_flat(ntf, sizeof(ntf));
rc = ble_gattc_notify_custom(connection_handle[i],
rc = ble_gatts_notify_custom(connection_handle[i],
ble_spp_svc_gatt_read_val_handle,
txom);
if ( rc == 0 ) {

View File

@ -173,7 +173,7 @@ blehr_tx_hrate(TimerHandle_t ev)
}
om = ble_hs_mbuf_from_flat(hrm, sizeof(hrm));
rc = ble_gattc_notify_custom(conn_handle, hrs_hrm_handle, om);
rc = ble_gatts_notify_custom(conn_handle, hrs_hrm_handle, om);
assert(rc == 0);

View File

@ -194,7 +194,7 @@ notify_task(void *arg)
assert(om != NULL);
}
rc = ble_gattc_notify_custom(conn_handle, notify_handle, om);
rc = ble_gatts_notify_custom(conn_handle, notify_handle, om);
if (rc != 0) {
ESP_LOGE(tag, "Error while sending notification; rc = %d", rc);
notify_count -= 1;