From d5c46dc114fb7c1c6ef7932d2772080aa0a07c70 Mon Sep 17 00:00:00 2001 From: geeksville Date: Fri, 24 Jul 2020 12:39:48 -0700 Subject: [PATCH] use max mtusize for speed --- src/nimble/BluetoothUtil.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nimble/BluetoothUtil.cpp b/src/nimble/BluetoothUtil.cpp index a1427685..efc378d0 100644 --- a/src/nimble/BluetoothUtil.cpp +++ b/src/nimble/BluetoothUtil.cpp @@ -461,6 +461,8 @@ void reinitBluetooth() nimble_port_init(); + ble_att_set_preferred_mtu(512); + res = ble_gatts_reset(); // Teardown the service tables, so the next restart assigns the same handle numbers assert(res == ESP_OK);