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

Decoding frame data #200

Open
rtborg opened this issue May 11, 2022 · 0 comments
Open

Decoding frame data #200

rtborg opened this issue May 11, 2022 · 0 comments

Comments

@rtborg
Copy link

rtborg commented May 11, 2022

I'd like to use libmbus in a C project, where data is pulled from a device and sent through another interface. Is there a way to parse/extract all data points from a telegram in a loop? Something like this:

foreach(data d in mbus_frame)
    char *data_type = mbus_frame.next_data_type()
    char *data = mbus_frame.next_data()

Edit: I am porting libmbus for use in an embedded device which does not have a lot of RAM, so my intent is to iterate over the data and send each record out as raw bytes, no decoding.

Thanks

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