From 78e64bbe5c47b4e2bd64154dcd1ef40621c0c8b6 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 6 Jul 2019 20:18:37 +0100 Subject: [PATCH] net/nwfmqtt: fix handling of the "secure" option Really wants a number and not a boolean, apparently. Ick, I should fix that upstream, but for the moment, just use the parsed value or 0. --- net/nwfmqtt.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/nwfmqtt.lua b/net/nwfmqtt.lua index 2cc6e2a..8e38865 100644 --- a/net/nwfmqtt.lua +++ b/net/nwfmqtt.lua @@ -33,7 +33,7 @@ function self.connect(m,cf) -- make a connection with parameters from json file conf = nil broker = broker or "iot.eclipse.org" port = port or 1883 - secure = (secure == 1) or 0 + secure = secure or 0 return m:connect(broker,port,secure) end function self.suball(m,fn) -- subscribe to all lines in a file -- 2.50.1