Skip to content

EddystoneUID with only 18 datalength #3

@EwaRvr

Description

@EwaRvr

I am using Kontakt.IO beacons in Eddystone UID setting, however, those beacons only include 18 characters of data.
As nowhere in the code you use the last 2 digits, in file lib/parser-eddystone.js would you be opposed to changing line 82 to if(data.length !== 20 && data.length !== 18) {?

Also, I would love to see the ability to pass in a parameter into the scanner to enable the return of any non-supported beacon formats from the parser (similar to https://github.com/cagdasakar/mechanic-ble-scanner/blob/master/lib/parser.js, just turned on by a parameter for backwards compatibility.
It would have helped me tremendously with discovering the above issue, as I would have been able to see the tags come through unparsed, rather than just being absent.

I can create a pull request for both if you like?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions