diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-01-23 21:07:23 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-01-23 21:07:23 -0500 |
| commit | b1f1bb1389809e07c8b315aa9891d58e79c247e9 (patch) | |
| tree | 3055b7b997118466fe4d909e3c9b29658edcb5cf /ports | |
| parent | 49581f9e1cbe8446b9fc3a44f6176ff3f5285b4b (diff) | |
support BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST, sent by newer devices
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/nrf/common-hal/bleio/Peripheral.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/nrf/common-hal/bleio/Peripheral.c b/ports/nrf/common-hal/bleio/Peripheral.c index 710825960..9dedc33e9 100644 --- a/ports/nrf/common-hal/bleio/Peripheral.c +++ b/ports/nrf/common-hal/bleio/Peripheral.c @@ -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; |
