This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

14 byte HEX
#3
(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
Reply


Messages In This Thread
14 byte HEX - by Domoticatorino - 19.03.2025, 10:47
RE: 14 byte HEX - by admin - 19.03.2025, 10:55
RE: 14 byte HEX - by Domoticatorino - 19.03.2025, 10:58
RE: 14 byte HEX - by admin - 19.03.2025, 12:42
RE: 14 byte HEX - by Domoticatorino - 19.03.2025, 14:05
RE: 14 byte HEX - by admin - 19.03.2025, 14:12

Forum Jump: