0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 11:03:48 +01:00

Logging ssid to debug network connection issues

This commit is contained in:
peteruithoven 2013-10-26 01:31:06 +02:00
parent 3e8fe104c9
commit 556b587059
2 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,7 @@ local accessManager = require('util.access')
local printDriver = require('print3d')
local printerUtils = require('util.printer')
local printerAPI = require('rest.api.api_printer')
local wifi = require('network.wlanconfig')
local TMP_DIR = '/tmp'
local LOG_COLLECT_DIRNAME = 'wifibox-logs'
@ -112,6 +113,9 @@ end
function M.status(request, response)
local ds = wifi.getDeviceState()
log:debug(" ssid: "..utils.dump(ds.ssid))
local rv
rv, state = printerAPI.state(request, response)
if(rv == false) then return end

View File

@ -209,6 +209,10 @@ end
function M.alive(request, response)
response:setSuccess("alive")
local ds = wifi.getDeviceState()
log:debug(" ssid: "..utils.dump(ds.ssid))
end
return M