From 60a95c420df6e17326cff695bfdd0c5fcd99d048 Mon Sep 17 00:00:00 2001 From: Artem Pastukhov Date: Thu, 2 Apr 2015 15:44:01 +0300 Subject: [PATCH] remove http/ual.lua --- http/ual.lua | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 http/ual.lua diff --git a/http/ual.lua b/http/ual.lua deleted file mode 100644 index f86a799..0000000 --- a/http/ual.lua +++ /dev/null @@ -1,25 +0,0 @@ -local function storelist(table) - file.remove("http/aplist.json") - file.open("http/aplist.json","w") - coroutine.yield() - file.write(cjson.encode(table)) - file.close() - print(cjson.encode(table)) -end - - - - - - -local function sendHeader(connection) - connection:send("HTTP/1.0 200 OK\r\nContent-Type: application/json\r\nCache-Control: private, no-store\r\n\r\n") - connection:send('{"error":0, "message":"OK"}') -end - - - -return function(connection,args) - sendHeader(connection) - wifi.sta.getap(storelist) -end