Skip to content

Commit 96c7689

Browse files
committed
add send confirm to indicate
1 parent d0655b3 commit 96c7689

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/Bluefruit52Lib/src/BLEClientCharacteristic.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ bool BLEClientCharacteristic::disableIndicate (void)
388388

389389
void BLEClientCharacteristic::_eventHandler(ble_evt_t* evt)
390390
{
391+
const uint16_t evt_conn_hdl = evt->evt.common_evt.conn_handle;
391392
uint16_t gatt_status = evt->evt.gattc_evt.gatt_status;
392393

393394
switch(evt->header.evt_id)
@@ -433,6 +434,9 @@ void BLEClientCharacteristic::_eventHandler(ble_evt_t* evt)
433434
{
434435
_indicate_cb(this, hvx->data, hvx->len);
435436
}
437+
438+
// Send confirmation to server
439+
VERIFY_STATUS( sd_ble_gattc_hv_confirm(evt_conn_hdl, hvx->handle), );
436440
}
437441
break;
438442

0 commit comments

Comments
 (0)