From 9459bb2645a3f998fd9a0b18785a88c845506293 Mon Sep 17 00:00:00 2001 From: Marcos Kirsch Date: Sun, 22 Feb 2015 16:09:06 -0600 Subject: [PATCH] Add code that shows how to start the server --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index bfeaf9c..1cd7a0b 100644 --- a/init.lua +++ b/init.lua @@ -1,6 +1,4 @@ -- Tell the chip to connect to the access point - -print('Welcome') wifi.setmode(wifi.STATION) print('set mode=STATION (mode='..wifi.getmode()..')') print('MAC: ',wifi.sta.getmac()) @@ -14,6 +12,9 @@ tmr.alarm(0, 3000, 1, function() else tmr.stop(0) print('IP: ',wifi.sta.getip()) + -- Uncomment to automatically start the server. + -- require("httpserver") + -- server = httpserver.start(80, 10) end end)