From: Nathaniel Wesley Filardo Date: Thu, 13 Oct 2016 23:38:30 +0000 (-0400) Subject: mqtt_revert should not be local X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=ed284e6411b154c7b80c9ec827a6dcc8aa4da939;p=acmetensortoys-esp-lua_lamp mqtt_revert should not be local No functional change as the -remote module already ends up making this global. Still, for documentation... --- diff --git a/init2.lua b/init2.lua index d3fe857..4d93e5e 100644 --- a/init2.lua +++ b/init2.lua @@ -46,7 +46,7 @@ end function leddefault(fb,...) fb:fill(0,0,0); local ix; for ix = 25,32 do fb:set(ix,...) end end -- MQTT-driven local setting -local mqtt_revert = nil +mqtt_revert = nil nwfnet.onmqtt["lamp"] = function(c,t,m) if t and m and t:find("^lamp/[^/]+/out") then dofile("lamp-remote.lc")(m) end end -- TODO: messages to specific lamps? Multiple brokers?