-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 BLE dual role: Callback error when connecting to Client #9013
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
Comments
I ran into this issue with similar code using PlatformIO. That is, BLEServerCallbacks::onConnect is called when a connection is made using BLEClient::connect. Only BLEClientCallbacks::onConnect should be called when a connection is made. platform = espressif32 @ 6.5.0 The problem is also documented in #7115. This comment offers a workaround. The PR (#7851) that closed #7115 resolves an issue related to the workaround but does not address the underlying problem. |
Is there any solution to the problem? |
cc @SuGlider |
Hello, Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket. Thanks. |
Board
ESP32 Dev Module
Device Description
KIT ESP32 Dev Module

Hardware Configuration
[env:esp32dev]
platform = espressif32 @ 6.4.0
board = esp32dev
framework = arduino
upload_port = COM19
monitor_port = COM19
monitor_speed = 115200
Version
latest master (checkout manually)
IDE Name
Platform IO
Operating System
Windows 11
Flash frequency
40MHz
PSRAM enabled
no
Upload speed
default
Description
I am developing a project using ESP32's BLE with 2 roles at the same time:
Server: connects to the phone to send information
Client: connects to another BLE device
Problem:
When connecting and disconnecting from the phone:
When connecting and disconnecting from a BLE device:
(see message log)
This affects the connection between the ESP32 and the phone when the ESP32 connects or disconnects with another BLE device.
How can the ESP32 recall the correct device being connected and not cause confusion?
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: