Skip to content

Binary data from BLE device's notification gets wrong encoding #111

@kopierschnitte

Description

@kopierschnitte

I was struggeling about wrong binary values returned from one of my BLE endpoints. Somehow, they've been converted or encoded in a wrong way. This was an issue long time ago: #42

connection.services[serviceUUID][characteristicUUID].notifyCallback(data.toString("binary"));

If I remove the "binary" argument of the conversion, the values are correct. At least for my use case.
Maybe someone is facing similar problems ;-)

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