19.03.2025, 10:58
(This post was last modified: 19.03.2025, 11:53 by Domoticatorino.)
(19.03.2025, 10:55)admin Wrote: Use loghex() to log the value in HEX format.
Thanks!
(19.03.2025, 10:55)admin Wrote: Use loghex() to log the value in HEX format.
Sorry, but why I cannot to use this instruction?
first6 = string.sub(value,1,6)
Sorry, I mean that I would like to keep just the first 6 digit of the value. Hence:
value = event.getvalue()
loghex(value)
first6 = string.sub(value,1,6)
log('first6 string is:', prime6)
I tried to convert value "tostring" without success.
What could you suggest please?
Tks.
BR