Expressions are based on Java language.
I'm not sure I understood.
In java I would do the following.
byte io1014 = (byte) 66
int digit = (io1014 & 0xFF);
char needed = (char) digit
or
char needed = (char) (io1014 & 0xFF)
or
Expression
io1014 ? (char) (io1014 & 0xFF) : null
which will result in this :)
org.traccar.handler.ComputedAttributesHandler.computeAttribute:119@1:12 variable 'char' is undefined - Variable (ComputedAttributesHandler:120 < AttributeResource:63 < ...)
Maybe you can have something like this:
new("java.lang.Character", io1014).toString()
Hello,
I'm trying to make a computed attribute that converts from byte to ASCII.
I have io1014 with a byte value of 66, which in ASCII is "B"
I tried the following things:
io1014 ? chr(io1014) : null
io1014 ? chr(io1014.toInt()) : null