I was seraching quite a lot of ressources but could not get anythunbg to work in openhab.
Problem: I have a setpoint item for temperatures. I want to send for example the value 20 (it is a temperature value as number) via my serial binding.
As the serial binding is a String item, my “20” is send as hex “32 30” corresponding to “2” “0” in ASCII code.
It should be “14” as hex code via my serial code.
Question: what can I do to either
a.) convert my “20” decimal value to the ASCII code
b.) convert my “20” to hex and actually send hex instead of ASCII (so far I found /uxxxx, but I can not use a variable with this)