init
This commit is contained in:
1
esp32-otaserv/data/conf/loopinterval
Normal file
1
esp32-otaserv/data/conf/loopinterval
Normal file
@@ -0,0 +1 @@
|
||||
100000
|
2
esp32-otaserv/data/conf/netconf
Normal file
2
esp32-otaserv/data/conf/netconf
Normal file
@@ -0,0 +1,2 @@
|
||||
SSID
|
||||
password
|
6
esp32-otaserv/data/run/dmz.js
Normal file
6
esp32-otaserv/data/run/dmz.js
Normal file
@@ -0,0 +1,6 @@
|
||||
function main(headers, contents, ip, port) {
|
||||
var head = "HTTP/1.1 200 OK\r\nContent-Type: text\r\n\r\n";
|
||||
var get = "GET /resource.txt HTTP/1.1\r\n\r\n\r\n";
|
||||
writeFile("data",getDeviceData());
|
||||
return head + readFile("/run/data") + "\r\n";
|
||||
}
|
3
esp32-otaserv/data/run/loop.js
Normal file
3
esp32-otaserv/data/run/loop.js
Normal file
@@ -0,0 +1,3 @@
|
||||
function main(){
|
||||
writeFile("data",getDeviceData());
|
||||
}
|
6
esp32-otaserv/data/run/main.js
Normal file
6
esp32-otaserv/data/run/main.js
Normal file
@@ -0,0 +1,6 @@
|
||||
function main(headers, contents, ip, port) {
|
||||
var head = "HTTP/1.1 200 OK\r\nContent-Type: xml\r\n\r\n";
|
||||
var get = "GET /resource.txt HTTP/1.1\r\n\r\n\r\n";
|
||||
|
||||
return head + readFile("/sys/addressbook") + "\r\n";
|
||||
}
|
0
esp32-otaserv/data/sys/addressbook
Normal file
0
esp32-otaserv/data/sys/addressbook
Normal file
Reference in New Issue
Block a user