mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-11-05 06:03:23 +01:00
Changed method from GET to POST
This commit is contained in:
parent
2b097996e0
commit
d3d8ebdeda
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user