esp-nimble-cpp
esp-nimble-cpp copied to clipboard
C++ library for the esp32 NimBLE stack based on and mostly compatible with @nkolban cpp_utils BLE library.
Espressif has recently(ish) created the component registry (https://components.espressif.com/). This makes it really easy for users of the library to automatically update the library without needing to use git submodules or...
I'm running into an issue where I start provisioning my device using esps prov api, which uses its own services. When I go out of that later in the application...
I wonder whether it would be feasible to update the codebase a bit with regards to modern C++ constructs. In particular, esp-nimble-cpp relies a lot on pointers (e.g., for callbacks)....
* General code cleanup * `NimBLEDevice::getInitialized` renamed to `NimBLEDevice::isInitialized`. * `NimBLEDevice::setPower` no longer takes the `esp_power_level_t` and `esp_ble_power_type_t`, instead only an integer value in dbm units is accepted. * `NimBLEDevice::setPower`...
This commit adds initial support for esp32-p4 with esp32-c6 as a radio. Configuration was tested on this dev board https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32p4/esp32-p4-function-ev-board/user_guide.html Since it is using esp_hosted component and we cant use...
Hi, this is just to let you know. I am working on some esp-idf project which is working well on S3, but i wish to make it compatible with P4...
Are there any easy ways to enable BLE modem sleep in this library like the example here for the idf https://github.com/espressif/esp-idf/blob/master/examples/bluetooth/nimble/power_save/main/main.c ?
I am looking into replaying BLE packets (specifically advertisements) previously recorded with [Wireshark](https://www.wireshark.org/) and [nRF sniffer](https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE) I wonder if such a "raw transmit" can be done with this library this...
```cpp #include "Arduino.h" #include "NimBLEDevice.h" extern "C" void app_main() { initArduino(); Serial.begin(115200); while(!Serial) ; NimBLEDevice::deinit(true); while(1) ; } ``` With this basic program, the device will continuously crash and reset....
Hello everyone, `NimBLEDescriptor *ble_description = ble_data_characteristic->createDescriptor(NimBLEUUID((uint16_t)0x2901), NIMBLE_PROPERTY::READ); ble_description->setValue("foobar"); NimBLE2904 *ble_characteristic_descriptor = (NimBLE2904*)ble_data_characteristic->createDescriptor(NimBLEUUID((uint16_t)0x2904), NIMBLE_PROPERTY::READ); ble_characteristic_descriptor->setFormat(NimBLE2904::FORMAT_UTF8);` Setting the value to “fooba” (5 Bytes or less) or to "foobar1" (7 Bytes or more)...