Skip to content

Pairing codes with leading zero get intepreted as octal #3

@torbenbn

Description

@torbenbn

I experienced a small issue connecting to our Emerald EMS because the paring code starts with a zero.

Something in the stack between the YAML input and the generated C++ seems to have interpreted this a an octal literal.
Looking at the generated C++, I saw a different five digit number instead of the correct six digit code.

The workaround I found was to make the pairing_code YAML element a string, then it connects fine.

Perhaps it would be worth updating the sample .yml file to pairing_code: "123123" - might save a bit of bother for ~10% of users:)

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