2) Исправлена фильтрация в случае выборки <= размеру окна
+ if #dataset <= width then
+ return dataset
+ end
+
local result = {}
local window_spread = math.floor(width/2)
local result = {}
local window_spread = math.floor(width/2)
if not mqtt_client:socket() then
mqtt_client:reconnect()
end
if not mqtt_client:socket() then
mqtt_client:reconnect()
end
- mqtt_client:publish(mqtt_path,v)
+ mqtt_client:publish(mqtt_path,v,0,0)
mqtt_client:loop()
end
end
mqtt_client:loop()
end
end
return '{'..name..'}'
end
end)
return '{'..name..'}'
end
end)
- mqtt_client:publish(mqtt_path,v)
+ mqtt_client:publish(mqtt_path,v,0,0)
mqtt_client:loop()
end
end
mqtt_client:loop()
end
end
return '{'..name..'}'
end
end)
return '{'..name..'}'
end
end)
- mqtt_client:publish(mqtt_path,msg_body)
+ mqtt_client:publish(mqtt_path,msg_body,0,0)
mqtt_client:loop()
end
if alarm_exec then
mqtt_client:loop()
end
if alarm_exec then