27.05.2024, 11:21
sir i have tried it but it is showing error
local mqtt_to_object = {
["mqtt.intingy.com"] = "32/1/1",
["test1"] = "32/1/2",
}
local function create_trend_log("32/1/1")
print("TEMP", '32/1/1')
end
for mqtt_topic, group_address in pairs(mqtt_to_object) do
create_trend_log('32/1/1')
end
local mqtt_to_object = {
["mqtt.intingy.com"] = "32/1/1",
["test1"] = "32/1/2",
}
local function create_trend_log("32/1/1")
print("TEMP", '32/1/1')
end
for mqtt_topic, group_address in pairs(mqtt_to_object) do
create_trend_log('32/1/1')
end