Remove BLEGap, API function is taken by Bluefruit, BLEPeriph, BLECentral
This commit is contained in:
19 files changed
+317
-479
No files matched your search
@@ -195,7 +195,7 @@ uint16_t HAPCharacteristic::writeHapValue(uint32_t num)
|
||||
|
||||
void HAPCharacteristic::createHapResponse(uint16_t conn_hdl, uint8_t status, TLV8_t tlv_para[], uint8_t count)
|
||||
{
|
||||
BLEConnection* conn = Bluefruit.Gap.Connection( conn_hdl );
|
||||
BLEConnection* conn = Bluefruit.Connection( conn_hdl );
|
||||
|
||||
// Determine body len (not including 2 byte length itself)
|
||||
uint16_t body_len = tlv8_encode_calculate_len(tlv_para, count);
|
||||
@@ -358,7 +358,7 @@ void HAPCharacteristic::processGattWrite(uint16_t conn_hdl, ble_gatts_evt_write_
|
||||
LOG_LV2("GATTS", "Write Op = %d, len = %d, offset = %d, uuid = 0x%04X", gatt_req->op, gatt_req->len, gatt_req->offset, gatt_req->uuid.uuid);
|
||||
LOG_LV2_BUFFER(NULL, gatt_req->data, gatt_req->len);
|
||||
|
||||
BLEConnection* conn = Bluefruit.Gap.Connection( conn_hdl );
|
||||
BLEConnection* conn = Bluefruit.Connection( conn_hdl );
|
||||
uint16_t const gatt_mtu = conn->getMtu() - 3;
|
||||
|
||||
ble_gatts_rw_authorize_reply_params_t reply =
|
||||
@@ -462,7 +462,7 @@ void HAPCharacteristic::processGattWrite(uint16_t conn_hdl, ble_gatts_evt_write_
|
||||
|
||||
void HAPCharacteristic::processGattRead(uint16_t conn_hdl, ble_gatts_evt_read_t* gatt_req)
|
||||
{
|
||||
BLEConnection* conn = Bluefruit.Gap.Connection( conn_hdl );
|
||||
BLEConnection* conn = Bluefruit.Connection( conn_hdl );
|
||||
uint16_t const gatt_mtu = conn->getMtu() - 3;
|
||||
|
||||
LOG_LV2("GATTS", "Read uuid = 0x%04X, offset = %d", gatt_req->uuid.uuid, gatt_req->offset);
|
||||
|
||||
Reference in new issue
Block a user