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.

Json data to table problem
#3
Yes I’m sure

This is the code

mclient.ON_MESSAGE = function(mid, topic, payload)
local msg = json.pdecode(payload)
log ("Payload", type(payload)

log(type(msg),msg)
log(json.decode(msg).variable)
if type(msg) == 'table' then
Redox = msg.Redox
log("redox",Redox)
end
end
Reply


Messages In This Thread
Json data to table problem - by bednarekluc - 28.03.2021, 11:55
RE: Json data to table problem - by admin - 28.03.2021, 12:13
RE: Json data to table problem - by bednarekluc - 28.03.2021, 12:18
RE: Json data to table problem - by admin - 28.03.2021, 12:23

Forum Jump: