seems the removeConfig needs to be called twice
This commit is contained in:
parent
c6b01a3cf7
commit
0d9684bfca
|
@ -154,6 +154,7 @@ function M.associate_POST(request, response)
|
|||
log:info(MOD_ABBR, "associated to wifi: "..utils.dump(argSsid))
|
||||
else
|
||||
log:info(MOD_ABBR, "failed to associate to wifi: "..utils.dump(argSsid).." ("..utils.dump(msg)..")")
|
||||
wifi.removeConfig(argSsid)
|
||||
local backupssid = wifi.getSubstitutedSsid(settings.get('network.ap.ssid'))
|
||||
netconf.setupAccessPoint(backupssid)
|
||||
netconf.enableAccessPoint(backupssid)
|
||||
|
|
Loading…
Reference in New Issue