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.

Comparing object names with Json list
#5
Remove the relevant log call:
Code:
require('json')

data = [[
PUT_JSON_DATA_HERE
]]

objects = json.decode(data).objects
for id, obj in pairs(objects) do
  id = tonumber(id)
  curr = grp.find(id)
  addr = buslib.decodega(id)

  if curr and obj.name and curr.name ~= obj.name then
    log('name mismatch ' .. addr, curr.name, obj.name)
  end
end
Reply


Messages In This Thread
RE: Comparing object names with Json list - by admin - 23.04.2021, 10:48

Forum Jump: