0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 02:53:49 +01:00

Changed method from GET to POST

This commit is contained in:
olijf 2016-04-12 12:22:14 +02:00
parent 2b097996e0
commit d3d8ebdeda
2 changed files with 2 additions and 3 deletions

View File

@ -218,12 +218,11 @@ function M.alive(request, response)
response:setSuccess("alive")
end
function M.reset(request, response)
function M.reset_POST(request, response)
response:setSuccess("Resetting networks")
log:info(MOD_ABBR, "Resetting networks")
for _, net in ipairs(wifi.getConfigs()) do
print(net.ssid)
wifi.removeConfig(net.ssid)
end

View File

@ -8,5 +8,5 @@ logger "$BUTTON pressed for $SEEN seconds"
if [ "$SEEN" -gt 4 ]
then
logger "Resetting Wireless"
/usr/share/lua/wifibox/script/d3dapi p=/network/reset r=GET
/usr/share/lua/wifibox/script/d3dapi p=/network/reset r=POST
fi