NimBLE-Arduino icon indicating copy to clipboard operation
NimBLE-Arduino copied to clipboard

Ondisconnect function not working when device disconnecting

Open kushalpatelkushal opened this issue 10 months ago • 7 comments

Hi,

I am using NimBLE v1.4.2. when i am connecting to device, it connects to device and i get onconnect callback. when i disconnect, i got ondisconnect callback. Issue happens when device is sending data like 128 data in 1 second, when device disconnect, i dont get ondisconnect callback. I dont know what to do in this case? I also tried numconnected device function to find if device is connected or not.

kushalpatelkushal avatar Mar 21 '25 09:03 kushalpatelkushal

I believe this to be an issue with the controller, which requires a fix/update with the Arduino core and/or esp-idf.

h2zero avatar Mar 21 '25 17:03 h2zero

I just tested this with arduino core 3.0.1 and it works fine, this must be something in the new core versions.

h2zero avatar Mar 21 '25 21:03 h2zero

Appears to work fine win arduino core 3.1.3 as well.

h2zero avatar Mar 21 '25 22:03 h2zero

i am using esp32 controller. any test code to test on this issue with esp32?

kushalpatelkushal avatar Mar 24 '25 05:03 kushalpatelkushal

currently using framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b using platformio

kushalpatelkushal avatar Mar 24 '25 07:03 kushalpatelkushal

@kushalpatelkushal Please test with the latest nimble core update that was just merged 8f32a23

h2zero avatar Apr 23 '25 00:04 h2zero

It's been reported that the issue has be resolved in the latest Arduino core. Please update that to version 3.2 and test.

h2zero avatar Apr 25 '25 15:04 h2zero

Closing as there has been no update, please reopen if it's still an issue.

h2zero avatar Sep 02 '25 20:09 h2zero