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
#5
(19.03.2025, 12:42)admin Wrote: Try this:
Code:
value = event.getvalue()
bytes = { value:byte(1, 6) }
code = table.concat(bytes)

log(code)

it does not work because the number result is not correct. I log this follow with loghex(value):

Quote:* arg: 1
  * hexstring [13]: 69 6C 20 6E 75 6D 65 72 6F 20 C3 A8 3A
* arg: 2
  * hexstring [4]: 12 12 12 01

The number I want to take are 121212.

It is consider a table with 2 value?

Thanks.

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: