Files
NodeMCU_Lua/Websocket/nodemcu-webide/bin/hello-world.lua
Christian Zufferey 8abc823276 - commencé à bosser sur les websocket, ce n'est pas en yaka :-(
- essayé d'installer webide sur NodeMCU, il y a justement un exemple de websocker server, je n'arrive pas encore à comprendre comment cela marche
- donc il y a encore pas mal de taf
2018-11-02 23:02:02 +01:00

15 lines
296 B
Lua
Executable File

return function (connection, req, args)
dofile('httpserver-header.lc')(connection, 200, 'html')
connection:send([===[<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>]===])
end