From 8a711fd661dd7dee127158b51e2f51486139eb6a Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Sun, 14 Jul 2024 20:13:44 +0200 Subject: [PATCH] Stuff --- controller-host/mqtt/luasocket.lua | 3 --- controller-host/mqttthread.lua | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) 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