Seeking code review for best practices article on using NimBLE #563
frankcohen
started this conversation in
General
Replies: 2 comments
-
Ping |
Beta Was this translation helpful? Give feedback.
0 replies
-
I posted a tutorial article on using Arduino and Bluetooth Low Energy (BLE) on ESP32 as server and client combined, using Apache NimBLE. I include my notes and example source code. Glad for your feedback and upvotes. https://www.reddit.com/r/arduino/comments/158bd4j/arduino_and_ble_on_esp32_as_server_and_client/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am seeking your review, criticism, and feedback for the code I wrote below. My intention is to write a tutorial article for Reddit showing best practices for people needing NimBLE for their ESP32 projects. I will publish under a free GPL v3 license. I want to avoid using Static variables, I want the workflow of the code to be obvious, and I want the code to avoid out-of-memory and other exceptions. Please let me know how to improve this. Thanks. -Frank
The use case is a mobile entertainment experience. Two or more ESP32-S3 devices communicate over BLE. There is no declared server or client between then - each may be a server and a client at the same time.
Here is the code for BLE.h:
Here is the code for BLE.cpp:
Beta Was this translation helpful? Give feedback.
All reactions