Skip to content

Commit

Permalink
Added switch back functionality
Browse files Browse the repository at this point in the history
see https://github.com/Doodle3D/doodle3d- client/issues/209 for the corresponding issue
  • Loading branch information
olijf committed Mar 22, 2016
1 parent 8fb0eba commit 9d07647
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rest/api/api_network.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ 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)..")")
--Some communication to the user would be nice. before setting up AP mode again
local ssid = wifi.getSubstitutedSsid(settings.get('network.ap.ssid'))
netconf.setupAccessPoint(ssid)
end

end
Expand Down

0 comments on commit 9d07647

Please sign in to comment.