File tree Expand file tree Collapse file tree 2 files changed +44
-10
lines changed Expand file tree Collapse file tree 2 files changed +44
-10
lines changed Original file line number Diff line number Diff line change
1
+
2
+ #! /bin/bash
3
+ # shellcheck disable=SC2002
4
+
5
+ # fail the script if any command unexpectedly fails
6
+ set -e
7
+
8
+ if [ ! $# -eq 3 ]; then
9
+ echo " Bad number of arguments: $# " >&2
10
+ echo " usage: $0 <major> <minor> <patch>" >&2
11
+ exit 1
12
+ fi
13
+
14
+ re=' ^[0-9]+$'
15
+ if [[ ! $1 =~ $re ]] || [[ ! $2 =~ $re ]] || [[ ! $3 =~ $re ]] ; then
16
+ echo " error: Not a valid version: $1 .$2 .$3 " >&2
17
+ echo " usage: $0 <major> <minor> <patch>" >&2
18
+ exit 1
19
+ fi
20
+
21
+ ASYNCTCP_VERSION_MAJOR=" $1 "
22
+ ASYNCTCP_VERSION_MINOR=" $2 "
23
+ ASYNCTCP_VERSION_PATCH=" $3 "
24
+ ASYNCTCP_VERSION=" $ASYNCTCP_VERSION_MAJOR .$ASYNCTCP_VERSION_MINOR .$ASYNCTCP_VERSION_PATCH "
25
+
26
+ echo " New AsyncTCP version: $ASYNCTCP_VERSION "
27
+
28
+ echo " Updating library.properties..."
29
+ cat library.properties | sed " s/version=.*/version=$ASYNCTCP_VERSION /g" > __library.properties && mv __library.properties library.properties
30
+
31
+ echo " Updating library.json..."
32
+ cat library.json | sed " s/^ \" version\" :.*/ \" version\" : \" $ASYNCTCP_VERSION \" ,/g" > __library.json && mv __library.json library.json
33
+
34
+ echo " Updating src/AsyncTCPVersion.h..."
35
+ cat src/AsyncTCPVersion.h | \
36
+ sed " s/#define ASYNCTCP_VERSION_MAJOR.*/#define ASYNCTCP_VERSION_MAJOR $ASYNCTCP_VERSION_MAJOR /g" | \
37
+ sed " s/#define ASYNCTCP_VERSION_MINOR.*/#define ASYNCTCP_VERSION_MINOR $ASYNCTCP_VERSION_MINOR /g" | \
38
+ sed " s/#define ASYNCTCP_VERSION_PATCH.*/#define ASYNCTCP_VERSION_PATCH $ASYNCTCP_VERSION_PATCH /g" > src/__AsyncTCPVersion.h && mv src/__AsyncTCPVersion.h src/AsyncTCPVersion.h
39
+
40
+ exit 0
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ Discord Server: [https://discord.gg/X7zpGdyUcY](https://discord.gg/X7zpGdyUcY)
12
12
13
13
Please see the new links:
14
14
15
- - ` ESP32Async/ESPAsyncWebServer @ 3.6.2 ` (ESP32, ESP8266, RP2040)
16
- - ` ESP32Async/AsyncTCP @ 3.3.2 ` (ESP32)
17
- - ` ESP32Async/ESPAsyncTCP @ 2.0.0 ` (ESP8266)
15
+ - ` ESP32Async/ESPAsyncWebServer ` (ESP32, ESP8266, RP2040)
16
+ - ` ESP32Async/AsyncTCP ` (ESP32)
17
+ - ` ESP32Async/ESPAsyncTCP ` (ESP8266)
18
18
- ` https://github.com/ESP32Async/AsyncTCPSock/archive/refs/tags/v1.0.3-dev.zip ` (AsyncTCP alternative for ESP32)
19
- - ` khoih-prog/AsyncTCP_RP2040W @ 1.2.0 ` (RP2040)
19
+ - ` khoih-prog/AsyncTCP_RP2040W ` (RP2040)
20
20
21
21
### Async TCP Library for ESP32 Arduino
22
22
@@ -50,12 +50,6 @@ The base classes on which everything else is built. They expose all possible sce
50
50
- Use IPADDR6_INIT() macro to set connecting IPv6 address
51
51
- xTaskCreateUniversal function
52
52
53
- ## Coordinates
54
-
55
- ```
56
- ESP32Async/AsyncTCP @ ^3.3.2
57
- ```
58
-
59
53
## Important recommendations
60
54
61
55
Most of the crashes are caused by improper configuration of the library for the project.
You can’t perform that action at this time.
0 commit comments