Spiegeltest with TinyC image #62
GFriedrich
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
with the recent release of the plain TinyC images, I've decided to switch my setup. (Thanks for your overall work here @ottelo9 🙏 )
To check if everything is working, I wanted to try the "mirror test" (Spiegeltest).
Unfortuntely though this script was only available with the old scripting format and used some methods in the script that were not convertable by the TinyC Tasmota implementation.
Therefore, I decided to quickly migrate the test to some TinyC script.
I was unable to figure out how to return a char array from a function, so decided to write the results to a buffer. (Not the nicest solution but works fine for a test.)
Make sure to still select the original "Spiegeltest" script for the descriptor of your configured meter - just remove the old script part.
Also be aware: To make things easy for me to handle I've reused the common sml descriptor file from gemo2015's repository at https://github.com/gemu2015/Sonoff-Tasmota/blob/universal/tasmota/tinyc/examples/sml_descriptor.tc
Hope that helps in case you decide to go with a TinyC image.
Feel free to use/copy/modify this as you like.
Beta Was this translation helpful? Give feedback.
All reactions