change the linker memory for homekit
This commit is contained in:
1 parent
ee1d76b2d5
commit
0f17739b2d
11 files changed
+90
-27
No files matched your search
@@ -214,12 +214,26 @@ void BLEGap::_eventHandler(ble_evt_t* evt)
|
||||
}
|
||||
break;
|
||||
|
||||
case BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST:
|
||||
// Let Softdevice decide the data length
|
||||
// ble_gap_data_length_params_t* param = &evt->evt.gap_evt.params.data_length_update_request.peer_params
|
||||
VERIFY_STATUS( sd_ble_gap_data_length_update(conn_handle, NULL, NULL), );
|
||||
break;
|
||||
|
||||
case BLE_GAP_EVT_DATA_LENGTH_UPDATE:
|
||||
{
|
||||
ble_gap_data_length_params_t* datalen = &evt->evt.gap_evt.params.data_length_update.effective_params;
|
||||
LOG_LV1(GAP, "Data Length is (tx, rx) octets = (%d, %d), (tx, rx) time = (%d, %d) us",
|
||||
datalen->max_tx_octets, datalen->max_rx_octets, datalen->max_tx_time_us, datalen->max_rx_time_us);
|
||||
}
|
||||
break;
|
||||
|
||||
case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
|
||||
{
|
||||
peer->att_mtu = minof(evt->evt.gatts_evt.params.exchange_mtu_request.client_rx_mtu, BLEGATT_ATT_MTU_MAX);
|
||||
VERIFY_STATUS( sd_ble_gatts_exchange_mtu_reply(conn_handle, peer->att_mtu), );
|
||||
|
||||
LOG_LV1(BLE, "ATT MTU is changed to %d", peer->att_mtu);
|
||||
LOG_LV1(GAP, "ATT MTU is changed to %d", peer->att_mtu);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user