BLE faster disconnect from GATT server

I’m trying to make faster connect-disconnect to GATT server. In my experiment allways I must wait about 5s and this is too long for my application, because I must have time to reach another beacon and connect. For 5s I can miss that.

Is there somewhare in settings of BLE this timeout?

Yes, the default timeout of 5 seconds can be changed using BLE.setPPCP():

https://docs.particle.io/reference/device-os/firmware/boron/#ble-setppcp-

Do it before you connect to the peer; it changes the default value. The minimum is still 1 second, so very fast hand-off isn’t really possible.

1 Like

Thanks! Now is much better😃