8000 Ondisconnect function not working when device disconnecting · Issue #917 · h2zero/NimBLE-Arduino · GitHub
[go: up one dir, main page]

Skip to content

Ondisconnect function not working when device disconnecting #917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kushalpatelkushal opened this issue Mar 21, 2025 · 7 comments
Open

Comments

@kushalpatelkushal
Copy link

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.

@h2zero
Copy link
Owner
h2zero commented Mar 21, 2025

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

@h2zero
Copy link
Owner
h2zero commented Mar 21, 2025

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

@h2zero
Copy link
Owner
h2zero commented Mar 21, 2025

Appears to work fine win arduino core 3.1.3 as well.

@kushalpatelkushal
Copy link
Author

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

@kushalpatelkushal
Copy link
Author

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

@h2zero
Copy link
Owner
h2zero commented Apr 23, 2025

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

@h2zero
Copy link
Owner
h2zero commented Apr 25, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0