local function sendHeader(connection) connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\Cache-Control: private, no-store\r\n\r\n") end local function sendAttr(connection, attr, val) connection:send("
  • ".. attr .. ": " .. val .. "
  • \n") end return function (connection, args) collectgarbage() sendHeader(connection) connection:send('A Lua script sample') connection:send('') connection:send('

    Node info

    ') majorVer, minorVer, devVer, chipid, flashid, flashsize, flashmode, flashspeed = node.info(); connection:send('') connection:send('') end