This commit is contained in:
Lukian 2024-10-28 13:11:21 +01:00
parent 71d93de012
commit 183ab102f2
4 changed files with 21 additions and 0 deletions

View file

@ -7,3 +7,6 @@ printTemp()
-- affiche le résultat du dé sur le neopixel
-- dice()
-- lance l'hotspot wifi et le serveur web
dofile("web.lua")

4
web.lua Normal file
View file

@ -0,0 +1,4 @@
nb = 0
net.wf.setup(net.wf.mode.AP, "ESP32 Pierre", "sandwich134")
net.wf.start()
net.service.http.start()

14
www/index.lua Normal file
View file

@ -0,0 +1,14 @@
<html>
<head>
<title>ESP 32 web page</title>
<link href="style.css" rel="stylesheet"/>
</head>
<body>
<h1>Hello, world!</h1>
<?lua
nb = nb + 1
console(nb.." Chargements")
print(nb.." Chargements")
?>
</body>
</html>

0
www/style.css Normal file
View file