Browse Source

WiFi configuration using new, table based API (#105)

Gerhard Schwärzler 6 years ago
parent
commit
0f852665ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      httpserver-wifi.lua

+ 1 - 1
httpserver-wifi.lua

@@ -19,7 +19,7 @@ end
 
 if (conf.wifi.mode == wifi.STATION) or (conf.wifi.mode == wifi.STATIONAP) then
     print('Client MAC: ',wifi.sta.getmac())
-    wifi.sta.config(conf.wifi.station.ssid, conf.wifi.station.pwd, 1)
+    wifi.sta.config(conf.wifi.station)
 end
 
 print('chip: ',node.chipid())