mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +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")
|
response:setSuccess("alive")
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.reset(request, response)
|
function M.reset_POST(request, response)
|
||||||
response:setSuccess("Resetting networks")
|
response:setSuccess("Resetting networks")
|
||||||
|
|
||||||
log:info(MOD_ABBR, "Resetting networks")
|
log:info(MOD_ABBR, "Resetting networks")
|
||||||
for _, net in ipairs(wifi.getConfigs()) do
|
for _, net in ipairs(wifi.getConfigs()) do
|
||||||
print(net.ssid)
|
|
||||||
wifi.removeConfig(net.ssid)
|
wifi.removeConfig(net.ssid)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -8,5 +8,5 @@ logger "$BUTTON pressed for $SEEN seconds"
|
|||||||
if [ "$SEEN" -gt 4 ]
|
if [ "$SEEN" -gt 4 ]
|
||||||
then
|
then
|
||||||
logger "Resetting Wireless"
|
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
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user