Browse Source

fix nodeingo_lua for AP more.

wifi.sta.getip() is nul in AP mode
Gregor 7 years ago
parent
commit
54b6525805
1 changed files with 1 additions and 1 deletions
  1. 1 1
      http/node_info.lua

+ 1 - 1
http/node_info.lua

@@ -1,5 +1,5 @@
 local function sendAttr(connection, attr, val)
-   connection:send("<li><b>".. attr .. ":</b> " .. val .. "<br></li>\n")
+   connection:send("<li><b>".. attr .. ":</b> " .. (val or "nil") .. "<br></li>\n")
 end
 
 return function (connection, req, args)