mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2025-01-18 07:05:10 +01:00
More API:network/openap logs
This commit is contained in:
parent
94bcea894e
commit
f4babb5c20
@ -260,7 +260,7 @@ end
|
|||||||
-- @return True on success or nil+msg on error.
|
-- @return True on success or nil+msg on error.
|
||||||
function M.setupAccessPoint(ssid)
|
function M.setupAccessPoint(ssid)
|
||||||
|
|
||||||
M.setStatus(M.CREATING,"Creating access point...");
|
M.setStatus(M.CREATING,"Creating access point '"..ssid.."'...");
|
||||||
|
|
||||||
M.switchConfiguration{apnet="add_noreload"}
|
M.switchConfiguration{apnet="add_noreload"}
|
||||||
wifi.activateConfig(ssid)
|
wifi.activateConfig(ssid)
|
||||||
@ -270,6 +270,23 @@ function M.setupAccessPoint(ssid)
|
|||||||
|
|
||||||
M.setStatus(M.CREATED,"Access point created");
|
M.setStatus(M.CREATED,"Access point created");
|
||||||
|
|
||||||
|
local ds = wifi.getDeviceState()
|
||||||
|
--log:info(" network/status: ")
|
||||||
|
log:info(" ssid: ".. utils.dump(ds.ssid))
|
||||||
|
--[[log:info(" bssid: ".. utils.dump(ds.bssid))
|
||||||
|
log:info(" channel: ".. utils.dump(ds.channel))
|
||||||
|
log:info(" mode: ".. utils.dump(ds.mode))
|
||||||
|
log:info(" encryption: ".. utils.dump(ds.encryption))
|
||||||
|
log:info(" quality: ".. utils.dump(ds.quality))
|
||||||
|
log:info(" quality_max: ".. utils.dump(ds.quality_max))
|
||||||
|
log:info(" txpower: ".. utils.dump(ds.txpower))
|
||||||
|
log:info(" signal: ".. utils.dump(ds.signal))
|
||||||
|
log:info(" noise: ".. utils.dump(ds.noise))
|
||||||
|
log:info(" raw: ".. utils.dump(ds))
|
||||||
|
|
||||||
|
local localip = wifi.getLocalIP()
|
||||||
|
log:info(" localip: "..utils.dump(localip))]]--
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user