Skip to content

Support for characteristics with MIN_LEN=0 ? #25

@scottljohnson

Description

@scottljohnson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions