mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 19:13:49 +01:00
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))
|
log:info(MOD_ABBR, "associated to wifi: "..utils.dump(argSsid))
|
||||||
else
|
else
|
||||||
log:info(MOD_ABBR, "failed to associate to wifi: "..utils.dump(argSsid).." ("..utils.dump(msg)..")")
|
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'))
|
local backupssid = wifi.getSubstitutedSsid(settings.get('network.ap.ssid'))
|
||||||
netconf.setupAccessPoint(backupssid)
|
netconf.setupAccessPoint(backupssid)
|
||||||
netconf.enableAccessPoint(backupssid)
|
netconf.enableAccessPoint(backupssid)
|
||||||
|
Loading…
Reference in New Issue
Block a user