mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-07-29 18:27:34 +02:00
Little cleanups and added partition file
This commit is contained in:
13
.github/ISSUE_TEMPLATE/bug_report.md
vendored
13
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -3,8 +3,7 @@ name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: "[BUG]"
|
||||
labels: triage
|
||||
assignees: ''
|
||||
|
||||
assignees: ""
|
||||
---
|
||||
|
||||
**Please make sure to go through the recommendations before opening a bug report:**
|
||||
@ -13,15 +12,13 @@ assignees: ''
|
||||
|
||||
**Description**
|
||||
|
||||
A clear and concise description of what the bug is.
|
||||
_A clear and concise description of what the bug is._
|
||||
|
||||
**Board**
|
||||
**Link:** _A link to your source code where the issue happens_
|
||||
|
||||
esp32dev, esp32s3, etc
|
||||
**Board**: _esp32dev, esp32s3, ?_
|
||||
|
||||
**Ethernet adapter used ?**
|
||||
|
||||
If yes, please specify which one
|
||||
**Ethernet adapter used ?** _If yes, please specify which one_
|
||||
|
||||
**Stack trace**
|
||||
|
||||
|
5
.github/ISSUE_TEMPLATE/question.md
vendored
5
.github/ISSUE_TEMPLATE/question.md
vendored
@ -3,8 +3,5 @@ name: Question
|
||||
about: Describe your question
|
||||
title: "[Q]"
|
||||
labels: question
|
||||
assignees: ''
|
||||
|
||||
assignees: ""
|
||||
---
|
||||
|
||||
|
||||
|
@ -123,7 +123,11 @@ void setup() {
|
||||
|
||||
Serial.begin(115200);
|
||||
|
||||
assert(LittleFS.begin());
|
||||
#ifdef ESP32
|
||||
LittleFS.begin(true);
|
||||
#else
|
||||
LittleFS.begin();
|
||||
#endif
|
||||
|
||||
if (!LittleFS.exists("/index.txt")) {
|
||||
File f = LittleFS.open("/index.txt", "w");
|
||||
@ -478,7 +482,10 @@ void setup() {
|
||||
}
|
||||
});
|
||||
|
||||
// go to http://192.168.4.1/sse
|
||||
server.addHandler(&events);
|
||||
|
||||
// Run: websocat ws://192.168.4.1/ws
|
||||
server.addHandler(&ws);
|
||||
|
||||
#if ASYNC_JSON_SUPPORT == 1
|
||||
@ -507,7 +514,7 @@ void loop() {
|
||||
ws.printfAll("kp%.4f", (10.0 / 3.0));
|
||||
// ws.getClients
|
||||
for (auto& client : ws.getClients()) {
|
||||
client.text("kp%.4f", (10.0 / 3.0));
|
||||
client.printf("kp%.4f", (10.0 / 3.0));
|
||||
}
|
||||
lastWS = millis();
|
||||
}
|
||||
|
7
partitions-4MB.csv
Normal file
7
partitions-4MB.csv
Normal file
@ -0,0 +1,7 @@
|
||||
# Name ,Type ,SubType ,Offset ,Size ,Flags
|
||||
nvs ,data ,nvs ,36K ,20K ,
|
||||
otadata ,data ,ota ,56K ,8K ,
|
||||
app0 ,app ,ota_0 ,64K ,1856K ,
|
||||
app1 ,app ,ota_1 ,1920K ,1856K ,
|
||||
spiffs ,data ,spiffs ,3776K ,256K ,
|
||||
coredump ,data ,coredump ,4032K ,64K ,
|
|
@ -27,6 +27,8 @@ lib_deps =
|
||||
bblanchon/ArduinoJson @ 7.2.0
|
||||
mathieucarbou/AsyncTCP @ 3.2.6
|
||||
board = esp32dev
|
||||
board_build.partitions = partitions-4MB.csv
|
||||
board_build.filesystem = littlefs
|
||||
|
||||
[env:arduino-2]
|
||||
platform = espressif32@6.9.0
|
||||
|
Reference in New Issue
Block a user