diff --git a/controller-host/mqtt/luasocket.lua b/controller-host/mqtt/luasocket.lua index ca66f2d..b189c2d 100644 --- a/controller-host/mqtt/luasocket.lua +++ b/controller-host/mqtt/luasocket.lua @@ -33,9 +33,6 @@ end -- Receive given amount of data from network connection function luasocket.receive(conn, size) - if math.random(0, 100) < 50 then - return nil, "timeout" - end local ok, err = conn.sock:receive(size) --if ok then -- print(" luasocket.receive good:", size, #ok, require("mqtt.tools").hex(ok)) diff --git a/controller-host/mqttthread.lua b/controller-host/mqttthread.lua index f6c4858..33b8162 100644 --- a/controller-host/mqttthread.lua +++ b/controller-host/mqttthread.lua @@ -38,8 +38,7 @@ local function onCommand(command) assert(client:subscribe { topic = topic }) - print("Subscribed to " .. topic) - print("Subscribed to " .. topic) + }) end end