-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
BACnet encoding #58
Comments
Thank you for your issue! I am aware of BACnet through reading about ASN.1, though I never really looked much into it. I would be open to including BACnet as an encoding in the On whether 1 or 2 would be preferable, I think as long 1 doesn't require unreasonable amount of changes, having it as an option might work, though it might be easier to define it as its own type, and just use the free functions in |
I did some first trials and option 1, to add it to the existing BER encoder turned out the be not a good idea. So I went with option 2 and created a separate encoder. I already managed to sucessfully encode Null and Bool. But now I'm not sure how to best move forward with signed and unsigned integers an real/float values For the two integer types I decided to encode them both via However I'm not sure what to do with the real. There is no |
Well Real types should have |
BACnet uses ASN.1 to encode it's datastructures. It also defines an encoding that is similar but not the same as the standard BER encoding.
The following are the main difference I identified between the BACnet Encoding and BER:
These are used instead of the universal ones.
I see the following possible ways of implemementing this:
Currently I'm playing around with the code to see if option 1 or 2 is a better fit.
@XAMPPRocky I would like to get your opinion which option you think is preferable? Specifically I would like to know if you see the BACnet encoding as part of this repo, or if I should go with a separate one.
The text was updated successfully, but these errors were encountered: