Skip to content

Fix stalling after connecting to BLE Server#2

Open
JudgeGregg wants to merge 1 commit intoThingEngineer:masterfrom
JudgeGregg:master
Open

Fix stalling after connecting to BLE Server#2
JudgeGregg wants to merge 1 commit intoThingEngineer:masterfrom
JudgeGregg:master

Conversation

@JudgeGregg
Copy link

Probably a bit late to the party, but in case someone stumbles on this sketch, I managed to get it running on a ESP32-C3 from Seeed. See Issue #1

As per https://github.com/espressif/arduino-esp32/blob/master/libraries/BLE/examples/Client/Client.ino:

  • I had to connect using a BLEAdvertisedDevice rather than a ServerAddress to get past the « Connected to Server Part »
  • Also return true on the function because its result is evaluated in the loop(), and failing to do so results in a crash.

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

Successfully merging this pull request may close these issues.

1 participant