Replies: 1 comment 4 replies
-
Something similar to the ".cal" option could be done. Something like:
And the decoder code would just save the ".lut" object and use the value extracted to index the table. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Having just created an initial test decoder for the Braun Bluetooth toothbrushes, of which there seem to be quite a lot of models, and creating the decoder so far with the information given in
1technophile/OpenMQTTGateway#767
the linked documents shows that many of the properties are taken from lookup tables from the decoded decimal values
https://github.com/Hypfer/Cybele/blob/master/lib/devices/OralBToothbrushDevice.js#L59
I've implemented this currently with underscore variants and conditions for the corresponding hex values, but even with leaving some states and sectors out this inflates the decoder badly, currently having had to increase the peak doc size very slightly for two included tests to run.
https://github.com/DigiH/decoder/tree/Braun-initial
So I'm wondering if a similar lookup table implementation would benefit from something this and possibly other similar device decoders. maybe even incorporating it into the already existing post_proc functionality, with "==" and the link to the relevant table, something like
with the additional definitions included in the decoder
Love to hear your thoughts on this, and if and how you think it should/could be implemented.
Beta Was this translation helpful? Give feedback.
All reactions