mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 19:13:49 +01:00
less logging
This commit is contained in:
parent
6a4879c7b2
commit
aab27a9768
@ -10,18 +10,15 @@ local M = {}
|
|||||||
--- Signin to connect.doodle3d.com server
|
--- Signin to connect.doodle3d.com server
|
||||||
--
|
--
|
||||||
function M.signin()
|
function M.signin()
|
||||||
log:info("signin")
|
|
||||||
local baseurl = "http://connect.doodle3d.com/signin.php"
|
local baseurl = "http://connect.doodle3d.com/signin.php"
|
||||||
|
|
||||||
local localip = wifi.getLocalIP();
|
local localip = wifi.getLocalIP();
|
||||||
log:info("localip: "..utils.dump(localip))
|
|
||||||
if localip == nil then
|
if localip == nil then
|
||||||
log:error("signin failed no local ip found")
|
log:error("signin failed no local ip found")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local wifiboxid = wifi.getSubstitutedSsid(settings.get('network.cl.wifiboxid'))
|
local wifiboxid = wifi.getSubstitutedSsid(settings.get('network.cl.wifiboxid'))
|
||||||
log:info("wifiboxid: "..utils.dump(wifiboxid))
|
|
||||||
|
|
||||||
local cmd = "wget -q -O - "..baseurl.."?wifiboxid="..wifiboxid.."\\&localip="..localip;
|
local cmd = "wget -q -O - "..baseurl.."?wifiboxid="..wifiboxid.."\\&localip="..localip;
|
||||||
local output = utils.captureCommandOutput(cmd);
|
local output = utils.captureCommandOutput(cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user