-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
added engineLoad + AdblueLevel #5141
base: master
Are you sure you want to change the base?
Conversation
register(113, fmbXXX, (p, b) -> p.set(Position.KEY_BATTERY_LEVEL, b.readUnsignedByte())); | ||
register(114, fmbXXX, (p, b) -> p.set("engineLoad", b.readUnsignedByte())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we already have a standard parameter for engine load?
@@ -245,7 +245,9 @@ private static void register(int id, Set<String> models, BiConsumer<Position, By | |||
register(89, fmbXXX, (p, b) -> p.set("fuelLevelPercentage", b.readUnsignedByte())); | |||
register(90, null, (p, b) -> p.set(Position.KEY_DOOR, b.readUnsignedShort())); | |||
register(110, fmbXXX, (p, b) -> p.set(Position.KEY_FUEL_CONSUMPTION, b.readUnsignedShort() * 0.1)); | |||
register(111, fmbXXX, (p, b) -> p.set("AdblueLevel", b.readUnsignedByte())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The key should be lower camel case, so something like adBlueLevel
or adblueLevel
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I noticed that the length is not correct. It's not a byte, according to the documentation. Make sure you include a unit test.
fixed typo, changed "KEY_ENGINE_LOAD"
https://wiki.teltonika-gps.com/view/FMB204_Teltonika_Data_Sending_Parameters_ID