esp-nimble-cpp/docs
h2zero 91210b8610 [BREAKING] Refactor attributes
Refactor attributes to reduce code duplication and improve maintainability.

* Add attribute base classes to provide common code.
* Add const where possible to functions and parameters.
* `NimBLECharacteristic::notify` no longer takes a `bool is_notification` parameter, instead `indicate()` should be called to send indications.
* `NimBLECharacteristic::indicate` now takes the same parameters as `notify`.
* `NimBLECharacteristicCallbacks` and `NimBLEDescriptorCallbacks` methods now take `const NimBLEConnInfo&` instead of non-const.
* `NimBLECharacteristic::onNotify` callback removed as unnecessary, the library does not call notify without app input.
* `NimBLERemoteCharacteristic::getRemoteService` now returns a `const NimBLERemoteService*` instead of non-const.
* Add NimBLEUUID constructor that takes a reference to `ble_uuid_any_t`.
* `NimBLERemoteService::getCharacteristics` now returns a `const std::vector<NimBLERemoteCharacteristic*>&` instead of non-const `std::vector<NimBLERemoteCharacteristic*>*`
* `NimBLERemoteService::getValue` now returns `NimBLEAttValue` instead of `std::string`
* `NimBLEService::getCharacteristics` now returns a `const std::vector<NimBLECharacteristic*>&` instead of a copy of std::vector<NimBLECharacteristic *>.
* Remove const requirement for NimBLEConnInfo parameter in callbacks.
  Const is unnecessary as the data can't be changed by application code.
* Change NimBLERemoteCharacteristic::getRemoteService to return const pointer.
2024-09-24 14:59:54 -06:00
..
Bluetooth 5 features.md Update docs. 2022-05-29 20:08:23 -06:00
Doxyfile Update doxygen config 2023-05-25 10:29:53 -06:00
Improvements_and_updates.md Fix inconsistent use of time units (#143) 2024-02-29 17:34:53 -07:00
index.md Release 1.4.0 2022-07-31 11:34:56 -06:00
Migration_guide.md [BREAKING] Refactor attributes 2024-09-24 14:59:54 -06:00
New_user_guide.md [BREAKING] Replace advertised device callbacks with scan callbacks. (#389) 2022-08-27 14:04:50 -06:00
Usage_tips.md Update docs. 2022-05-29 20:08:23 -06:00