Skip to content

Commit 3fc155d

Browse files
authored
New ESPAsyncWebserver (#40)
* chore: demo deps * fix: update location of ESP async * chore: package deps * fix: handle deprecation * release 1.8.0
1 parent 24e91e2 commit 3fc155d

14 files changed

+800
-948
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change log
22

3+
## 1.8
4+
5+
### 1.8.0
6+
7+
- Using the new and maintained ESPAsyncWebserver available at https://github.com/ESP32Async/ESPAsyncWebServer, that has some deprecations.
8+
39
## 1.7
410

511
### 1.7.1

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ I often make small to medium-sized microcontroller solutions that run on ESP32 o
1010

1111
In order to be able to easily update OTA, it is important - from the users' point of view - that the update file **consists of one file**. I can't use the SPIFFS/LittleFS solution for this. It is necessary that the WebUI files are included inline in the Arduino or PlatformIO c++ code.
1212

13-
This npm package provides a solution for **inserting any JS client application into the ESP web server** (PsychicHttp and also ESPAsyncWebServer available, PsychicHttp is the default). For this, JS, html, css, font, assets, etc. files must be converted to binary byte array. Npm mode is easy to use and easy to **integrate into your CI/CD pipeline**.
13+
This npm package provides a solution for **inserting any JS client application into the ESP web server** (PsychicHttp and also ESPAsyncWebServer (https://github.com/ESP32Async/ESPAsyncWebServer) available, PsychicHttp is the default). For this, JS, html, css, font, assets, etc. files must be converted to binary byte array. Npm mode is easy to use and easy to **integrate into your CI/CD pipeline**.
14+
15+
> Starting with version v1.8.0, use the new and maintained ESPAsyncWebserver available at https://github.com/ESP32Async/ESPAsyncWebServer
1416
1517
> Starting with version v1.7.0, with the cachetime command line option, you can set whether the browser can cache pages
1618
@@ -154,7 +156,7 @@ void initSvelteStaticFiles(PsychicHttpServer * server) {
154156

155157
### Engines and ESP variants
156158

157-
ESPAsyncWebServer is a popular web server that can be used on **both ESP32 and ESP8266 microcontrollers**. When you want to generate a file for this, use the `-e async` switch.
159+
ESPAsyncWebServer (current location https://github.com/ESP32Async/ESPAsyncWebServer) is a popular web server. When you want to generate a file for this, use the `-e async` switch.
158160

159161
If you **only work on ESP32**, I recommend using PsychicHttpServer, which uses the native mode ESP-IDF web server inside. This way, its operation is significantly faster and more continuous. You can access this mode with the `-e psychic` switch.
160162

demo/esp32/platformio.ini

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,61 +10,61 @@ board_build.partitions = min_spiffs.csv
1010
build_flags =
1111
-D ASYNC
1212
-I include/_
13-
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer
13+
lib_deps = https://github.com/ESP32Async/ESPAsyncWebServer
1414

1515
[env:async_E]
1616
build_flags =
1717
-D ASYNC
1818
-I include/e
19-
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer
19+
lib_deps = https://github.com/ESP32Async/ESPAsyncWebServer
2020

2121
[env:async_EC]
2222
build_flags =
2323
-D ASYNC
2424
-I include/ec
2525
-D SVELTEESP32_ENABLE_ETAG
26-
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer
26+
lib_deps = https://github.com/ESP32Async/ESPAsyncWebServer
2727

2828
[env:async_ECG]
2929
build_flags =
3030
-D ASYNC
3131
-I include/ecg
3232
-D SVELTEESP32_ENABLE_ETAG
33-
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer
33+
lib_deps = https://github.com/ESP32Async/ESPAsyncWebServer
3434

3535
[env:async_ECGC]
3636
build_flags =
3737
-D ASYNC
3838
-I include/ecgc
3939
-D SVELTEESP32_ENABLE_ETAG
4040
-D SVELTEESP32_ENABLE_GZIP
41-
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer
41+
lib_deps = https://github.com/ESP32Async/ESPAsyncWebServer
4242

4343
[env:async_EG]
4444
build_flags =
4545
-D ASYNC
4646
-I include/eg
47-
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer
47+
lib_deps = https://github.com/ESP32Async/ESPAsyncWebServer
4848

4949
[env:async_EGC]
5050
build_flags =
5151
-D ASYNC
5252
-I include/egc
5353
-D SVELTEESP32_ENABLE_GZIP
54-
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer
54+
lib_deps = https://github.com/ESP32Async/ESPAsyncWebServer
5555

5656
[env:async_G]
5757
build_flags =
5858
-D ASYNC
5959
-I include/g
60-
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer
60+
lib_deps = https://github.com/ESP32Async/ESPAsyncWebServer
6161

6262
[env:async_GC]
6363
build_flags =
6464
-D ASYNC
6565
-I include/gc
6666
-D SVELTEESP32_ENABLE_GZIP
67-
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer
67+
lib_deps = https://github.com/ESP32Async/ESPAsyncWebServer
6868

6969

7070

demo/svelte/dist/assets/index-Bccy-7n-.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/svelte/dist/assets/index-DSjEOBdh.js

-1
This file was deleted.

demo/svelte/dist/favicon.png.gz

0 Bytes
Binary file not shown.

demo/svelte/dist/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>Svelte to ESP32 demo application</title>
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
88
<meta name="theme-color" content="#f3f4f6" />
9-
<script type="module" crossorigin src="./assets/index-DSjEOBdh.js"></script>
9+
<script type="module" crossorigin src="./assets/index-Bccy-7n-.js"></script>
1010
<link rel="stylesheet" crossorigin href="./assets/index-CMpKda2x.css">
1111
</head>
1212

demo/svelte/eslint.config.mjs

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,14 @@ export default [
3939
'eslint:recommended',
4040
'plugin:@typescript-eslint/recommended',
4141
'plugin:svelte/recommended',
42-
'plugin:unicorn/all',
4342
'plugin:tailwindcss/recommended',
4443
'prettier'
4544
),
45+
unicorn.configs.all,
4646
{
4747
plugins: {
4848
'@typescript-eslint': typescriptEslint,
4949
'simple-import-sort': simpleImportSort,
50-
unicorn,
5150
tailwindcss
5251
},
5352

0 commit comments

Comments
 (0)