Our great sponsors
-
ReflectionsOS
Reflections is a hardware and software platform for building entertaining mobile experiences.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
NimBLE-Arduino
A fork of the NimBLE library structured for compilation with Arduino, for use with ESP32, nRF5x.
Below is the source code I wrote. It is part of the code I wrote for https://github.com/frankcohen/ReflectionsOS and does not compile by itself - I include it as an example to write your own code. I am distributing it under a GPL v3 license - free software, when you change the code you need to publish your code to the world. I use the code in my Reflection's open source project at https://github.com/frankcohen/ReflectionsOS in the BLE.h and BLE.cpp code files.
NimBLE comes from the Apache Mynewt real time operating system project. Mynewt is similar to other efforts like Zephyr. It continues to be maintained in 2023 and issues posed to the Github repository go answered.
I originally tried using the ESP32 blue BLE library. I ran out of memory. Switched to NimBLE-Arduino, an Arduino fork of Apache NimBLE, a replacement open-source BLE library https://github.com/h2zero/NimBLE-Arduino https://www.arduino.cc/reference/en/libraries/nimble-arduino/ https://h2zero.github.io/esp-nimble-cpp/md__migration_guide.html#autotoc_md46
Related posts
- Embedded Rust Bluetooth on ESP: BLE Scanner
- wifi& ble on tinypico and sketch too big
- Is it possible when creating a BLE mesh to have a node that sends and recieves messages
- How to connect 8BitDo using Arduino?
- Building an ESP32 powered BLE beacon detector to operate a dog door for this guy who is getting his leg amputated this week. I'm close with the hardware but new to BLE. Could use some help!