rename BLEGapConnection to BLEConnection, move to seperate files
This commit is contained in:
11 files changed
+187
-98
No files matched your search
@@ -77,7 +77,7 @@ uint16_t BLEGatt::readCharByUuid(uint16_t conn_hdl, BLEUuid bleuuid, void* buffe
|
||||
|
||||
bool BLEGatt::waitForIndicateConfirm(uint16_t conn_hdl)
|
||||
{
|
||||
BLEGapConnection* conn = Bluefruit.Gap.getConnection(conn_hdl);
|
||||
BLEConnection* conn = Bluefruit.Gap.getConnection(conn_hdl);
|
||||
|
||||
// hvi confirm semaphore is created on the fly
|
||||
conn->hvc_sem = xSemaphoreCreateBinary();
|
||||
@@ -96,7 +96,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
|
||||
const uint16_t evt_conn_hdl = evt->evt.common_evt.conn_handle;
|
||||
const uint16_t evt_id = evt->header.evt_id;
|
||||
|
||||
BLEGapConnection* conn = (evt_conn_hdl == BLE_CONN_HANDLE_INVALID) ? NULL : Bluefruit.Gap.getConnection(evt_conn_hdl);
|
||||
BLEConnection* conn = (evt_conn_hdl == BLE_CONN_HANDLE_INVALID) ? NULL : Bluefruit.Gap.getConnection(evt_conn_hdl);
|
||||
|
||||
/*------------- Server service -------------*/
|
||||
// TODO multiple peripherals
|
||||
|
||||
Reference in new issue
Block a user