-
Notifications
You must be signed in to change notification settings - Fork 4
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
Model 802: SOC Incorrect Type #13
Comments
The SoC field is marked as mandatory in the JSON model: {
"desc": "State of charge, expressed as a percentage.",
"label": "State of Charge",
"mandatory": "M",
"name": "SoC",
"sf": "SoC_SF",
"size": 1,
"type": "uint16",
"units": "%WHRtg"
}, I just checked the SMDX (XML) model file and it's been mandatory ever since: <point id="SoC" offset="9" type="uint16" sf="SoC_SF" units="%WHRtg" mandatory="true" /> Just to be sure I also checked in the Unless the spec is wrong this really should be a |
I just opened a new issue about parsing invalid model data: Is this maybe what you were looking for? |
You did it right. I didn't realize you were using Option for non-mandatory points. That makes complete sense. |
I'll close this issue a Ticket #16 now tracks the feature of parsing invalid model data. While I think it's going to cause a lot of troubles when parsing invalid data it shouldn't be impossible. I just don't have a great idea on what's necessary here. |
Per my comment on the file. I believe this should be an
Option<u16>
.The text was updated successfully, but these errors were encountered: