Closed kinimodkoch closed 11 months ago
This issue was about "Random Resolvable" MAC addresses that were enabled on the target server. I had to add the address type to the constructor of BLEAddress to make it work:
BLEAddress("12:34:56:78:90", BLE_ADDR_RANDOM)
Hi h2zero, I have been using the nimble library as a client on an ESP32 for some time. Now after updating my server (ESP32-C3 with zephyr environment) to BLE 5.4, I can not connect any more. I can still receive the advertisement of the server, but the 'connect' function returns 'false'. I have the impression it might be an issue in the nimble library, because I can also not connect to a server I set up with the NRF connect app.
I created a minimal code example to reproduce the issue:
The full platformio project with this example: nimble-connect-issue-platformio-project.zip
With an ESP32 Arduino Nimble Server the program works fine:
With other servers, I can not connect. The servers I tested:
All these servers accept connections with NRF connect without any issue.
The output:
Between the last two lines ('connecting to' and 'connect returned 0'), there were a few seconds delay where it seemed to try to connect.
Note: connecting to a nimble server with any of my clients works.
Thanks in advance for your help!
Best regards Dominik