c++
NimBLE is a completely open source Bluetooth Low Energy (BLE) stack produced by Apache. It is more suited to resource constrained devices than bluedroid and has now been ported to the ESP32 by Espressif.
- Add
COMPONENT_DEPENDS += NimBLE
to your application component.mk file. Add these lines to your application:
#include <NimBLEDevice.h> void init() { // ... BLEDevice::init(""); }