-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWEB_help_html.lua
More file actions
22 lines (20 loc) · 862 Bytes
/
WEB_help_html.lua
File metadata and controls
22 lines (20 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local help_page = [[
<html>
<h3>Commands</h3>
<b><a href='/config'/>/config</a></b> Edit configuration<br>
<b><a href='/control'/>/control</a></b> Check status,enable or disable servers, the load output and the mpp tracker process<br>
<b><a href='/reboot'/>/reboot</a></b> Reboot the device<br>
<h3>Info</h3>
<b><a href='/random'/>/random</a></b> Random key for encrypted authentication<br>
<b><a href='/csv.log'/>/csv.log</a></b> Show log data<br>
<br>
Configuration is stored in the file <b>config.lua</b>, which you can edit on your PC <br>
and upload/download via FTP or via serial port with nodemcu-tool.
<h3>Caveats</h3>
Use your passwords only over a encrypted WiFi and if you trust the network.
TELNET, FTP and HTTP keys can be sniffed easily, as they are sent unencrypted.
</html>
]]
return function(conn)
send_response(help_page)
end