-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Any chance to get the minimum characteristic length changed from 1 byte to 0 bytes? It’s a perfectly valid length, and appears to be supported in Adafruit's own nRF52 library, along with the underlying Nordic SDK and other BT SDK's I've briefly surveyed.
I do have a real use case for this. I'm implementing a simple peripheral on both Bluefruit and on Linux, with a protocol that can have zero-size characteristic writes in some cases. (Something like the UART service, but line-oriented, using a write size of less than 20 bytes to indicate the end-of-line condition.) It works fine in BlueZ on Linux, but then I found zero-size characteristics aren't supported by Bluefruit. It’s easy to work around in this case, but supporting zero size would be even better.