Skip to content

Negative Values for int64 not working #9

@dcbo

Description

@dcbo

When I register the example
parser.registerCommand("test", "sdiu", &cmd_test);
and parse the following Message:
test "Hello World" 13.23 -45 85
I get 45 for the interger instead of -45
Serial.print("int64: "); Serial.println(args[2].asInt64);
gives
int64: 45

It seems that the negative value is parsed, because when i submit a negative value for uint64
test "Hallo Welt" 13.23 -45 -85
then i get the Error;
parse error: invalid uint64_t for arg 4

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