Skip to content

Commit

Permalink
bad argument kovi44#1 to 'config'
Browse files Browse the repository at this point in the history
bad argument kovi44#1 to 'config' - updated
  • Loading branch information
hishamazad authored Dec 25, 2019
1 parent 3cfeeb8 commit b7bb16d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7bb16d

Please sign in to comment.