I am migrating a project from SDK 12 and SoftDevice S132 V3.0.0 to SDK 14 and SoftDevice S132 V5.0.0. Is the follow case still required in the ble_evt_handler
?
#if (NRF_SD_BLE_API_VERSION >= 3)
case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST:
{
errCode = sd_ble_gatts_exchange_mtu_reply(pBleEvt->evt.gatts_evt.conn_handle, BLE_GATT_ATT_MTU_DEFAULT);
APP_ERROR_CHECK(errCode);
} break; // BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST
#endif //(NRF_SD_BLE_API_VERSION >= 3)
Or does this case now handle this?
#if defined(S132)
case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
{
NRF_LOG_DEBUG("PHY update request.");
ble_gap_phys_t const phys =
{
.rx_phys = BLE_GAP_PHY_AUTO,
.tx_phys = BLE_GAP_PHY_AUTO,
};
errCode = sd_ble_gap_phy_update(pBleEvt->evt.gap_evt.conn_handle, &phys);
APP_ERROR_CHECK(errCode);
} break;
#endif
Thanks, Darren