support BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST, sent by newer devices

This commit is contained in:
Dan Halbert 2019-01-23 21:07:23 -05:00
parent 49581f9e1c
commit b1f1bb1389

View File

@ -266,6 +266,10 @@ STATIC void peripheral_on_ble_evt(ble_evt_t *ble_evt, void *self_in) {
break;
}
case BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST:
sd_ble_gap_data_length_update(self->conn_handle, NULL, NULL);
break;
case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST: {
sd_ble_gatts_exchange_mtu_reply(self->conn_handle, BLE_GATT_ATT_MTU_DEFAULT);
break;