bleconnection clean up

This commit is contained in:
hathach committed 2019-01-21 16:12:04 +07:00
1 parent a264e24eac
commit fc35f9f0cd
6 files changed
+13 -22

No files matched your search

+1 -7
View File
@@ -75,12 +75,6 @@ uint16_t BLEGatt::readCharByUuid(uint16_t conn_hdl, BLEUuid bleuuid, void* buffe
return (count < 0) ? 0 : count;
}
bool BLEGatt::waitForIndicateConfirm(uint16_t conn_hdl)
{
BLEConnection* conn = Bluefruit.Gap.getConnection(conn_hdl);
return conn->waitForIndicateConfirm();
}
void BLEGatt::_eventHandler(ble_evt_t* evt)
{
// conn handle has fixed offset regardless of event type
@@ -139,7 +133,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
// Save CCCD if paired
if ( conn->paired() && (evt_id == BLE_GATTS_EVT_WRITE) && (req_handle == chr->handles().cccd_handle) )
{
conn->_storeCccd();
conn->storeCccd();
}
}
}