Skip to content

BLE valueLength() on a peripheral is always returning 64 #575

Open
@foxed-in

Description

@foxed-in

With long writes from a device to the 101: I noticed that valueLength is always returning 64. It is necessary to get the correct length of data to keep from reading garbage at the end. I haven't seen any crashing though. I will attach the peripheral sketch used. I was using nRF connect to send text "0123456789". Ellisys shows "0123456789" in the traces.

This is the output from the serial terminal of the peripheral sketch that is reading the 10 characters sent from the phone.
value length: 64

value: 0123456789K?õßm÷çõðë·�–Pñß�ÿüÿ�ŸˆhÓ�

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