ESP32 Bluetooth LE - disconnect after 10 seconds

unknow005
Posts: 20
Joined: Wed Dec 19, 2018 6:16 am

ESP32 Bluetooth LE - disconnect after 10 seconds

Postby unknow005 » Wed Jan 29, 2020 6:07 am

Dear community,

I have working Bluetooth LE code for communication between ESP32 and Android / Windows 10 App. I am using these Arduino libraries:
#include <BLEDevice.h>
#include <BLEServer.h>
#include <BLEUtils.h>
#include <BLE2902.h>

The only problem is that connection least only 10 seconds. After that the device disconnect. Looks like the problem is DEFAULT_ENABLE_UPDATE_REQUEST feature (update timeout is often 10 seconds in default). I looked into headers and found updateConnParams in BLEUtils.h which can change min/max communication cycle, latency and timeout ... but it does not help.

The question is if there is a way how to turn off the DEFAULT_ENABLE_UPDATE_REQUEST or if there is any other BLE Arduino library which will work with ESP32 and have this feature?

Thanks for help!

Who is online

Users browsing this forum: No registered users and 47 guests