Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBOR encoding/decoding issue with timestamps #349

Open
janpaul123 opened this issue Dec 25, 2019 · 0 comments
Open

CBOR encoding/decoding issue with timestamps #349

janpaul123 opened this issue Dec 25, 2019 · 0 comments

Comments

@janpaul123
Copy link
Contributor

When I subscribe to a topic with the default JSON encoding and subscribe to a basic topic like /connected_clients, then fields of type time are correctly encoded, e.g. { "secs": 1577313146, "nsecs": 190 }.

However, when using the exact same code but using CBOR compression (compression: "cbor") I get this: { "115,101,99,115": 1577313146, "110,115,101,99,115": 190 }. Note that those numbers represent the ASCII values of "secs" and "nsecs".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant