- 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
This commit is contained in:
14
Websocket/nodemcu-webide/bin/hello-world.lua
Executable file
14
Websocket/nodemcu-webide/bin/hello-world.lua
Executable file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user