commit
This commit is contained in:
parent
71d93de012
commit
183ab102f2
4 changed files with 21 additions and 0 deletions
|
@ -7,3 +7,6 @@ printTemp()
|
||||||
|
|
||||||
-- affiche le résultat du dé sur le neopixel
|
-- affiche le résultat du dé sur le neopixel
|
||||||
-- dice()
|
-- dice()
|
||||||
|
|
||||||
|
-- lance l'hotspot wifi et le serveur web
|
||||||
|
dofile("web.lua")
|
||||||
|
|
4
web.lua
Normal file
4
web.lua
Normal 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
14
www/index.lua
Normal 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
0
www/style.css
Normal file
Loading…
Add table
Add a link
Reference in a new issue