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.

LM as BACNET CLient slow connection
#8
Use this conversion function instead of tonumber:
Code:
function tovalue(val)   if type(val) ~= 'string' then     return nil   elseif val == 'active' then     return true   elseif val == 'inactive' then     return false   else     return tonumber(val) or val   end end
Reply


Messages In This Thread
RE: LM as BACNET CLient slow connection - by admin - 28.03.2023, 06:06

Forum Jump: