h2zero / esp-nimble-cpp

C++ library for the esp32 NimBLE stack based on and mostly compatible with @nkolban cpp_utils BLE library.
https://h2zero.github.io/esp-nimble-cpp/
Apache License 2.0
181 stars 62 forks source link

Add an option to change BLE_ATT_ATTR_MAX_LEN #196

Open kutu opened 2 months ago

kutu commented 2 months ago

For my HID device I need bigger than 512 bytes report map, currently I have to change this line https://github.com/h2zero/esp-nimble-cpp/blob/cd115f1738fbf9134a4b00ed41d36fb20cafe22c/src/NimBLEAttValue.h#L30

and in nimble as well https://github.com/apache/mynewt-nimble/blob/baf2930d32c21222b77086181d842301bff9721f/nimble/host/include/host/ble_att.h#L227

Without changing this lines I get "driver error" in Windows, because my report map is not being sent.

If there is a way to send bigger than 512 bytes report map, please advice.

Thank you.

h2zero commented 2 months ago

That would go against the BLE core specification.