Created
February 27, 2015 21:04
-
-
Save sloev/e4d895698a34e4838748 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- a simple http server | |
srv=net.createServer(net.TCP) | |
srv:listen(80,function(conn) | |
conn:on("receive",function(conn,payload) | |
print(payload) | |
conn:send("<h1> Hello, NodeMcu.</h1>") | |
end) | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment