esp-nimble-cpp icon indicating copy to clipboard operation
esp-nimble-cpp copied to clipboard

NimBLELocalValueAttribute::setValue(const uint8_t* data, size_t size) doesn't report an error if the size is larger than 512 bytes

Open chmorgan opened this issue 2 months ago • 1 comments

Should it return to indicate that the setValue() has failed? I've got a few characteristics that I just spotted were larger than 512 bytes, the values aren't showing up, and will have to be split up, was wondering if a value should be returned to enable it being caught earlier.

chmorgan avatar Oct 23 '25 01:10 chmorgan

Yes, there should be some sort of notice so that the dev knows where to look.

h2zero avatar Oct 23 '25 22:10 h2zero