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.

250 byte string: strange behavior
#3
(02.12.2020, 09:01)admin Wrote: What value exactly do you get in 32/1/4? Try adding log(value, x, y, z) before grp.write to check the variable contents.
Also getvalue() there is not needed since hours variable already contains the same value.
Code:
if hours ~= nil then
    grp.checkupdate('32/1/2', hours, 0.01)
else
  return
end

hour = math.floor(hours)
minutes = string.format('%02d', math.floor((hours % 1) * 60))
text = hour .. ':' .. minutes
grp.write('32/1/4', text)


Enclosed what I mean. But the log of hour and minutes is correct. It seems that this problem occurs only in the machine LM5CLp2.

In LM5Lite knx no problem.

Thanks.

BR

Attached Files Thumbnail(s)
       
Reply


Messages In This Thread
RE: 250 byte string: strange behavior - by Domoticatorino - 02.12.2020, 10:27

Forum Jump: