From b7bb16dd44fa29e8c90c5d9ed911c80d080a334f Mon Sep 17 00:00:00 2001 From: hishamazad Date: Wed, 25 Dec 2019 20:02:41 +0530 Subject: [PATCH] bad argument #1 to 'config' bad argument #1 to 'config' - updated --- client.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client.lua b/client.lua index c0df597..434a7fd 100644 --- a/client.lua +++ b/client.lua @@ -156,7 +156,11 @@ filename=nil LoadX() wifi.setmode (wifi.STATION) -wifi.sta.config(s.ssid, s.pwd) + +station_cfg={} +station_cfg.ssid = s.ssid +station_cfg.pwd = s.pwd +wifi.sta.config(station_cfg) wifi.sta.autoconnect (1) iFail = 20 -- trying to connect to AP in 20sec, if not then reboot