77
77
* [ Methods for controlling websocket connections] ( #methods-for-controlling-websocket-connections )
78
78
* [ Adding Default Headers] ( #adding-default-headers )
79
79
* [ Path variable] ( #path-variable )
80
+ * [ How to connect W5500 to ESP32] ( #How-to-connect-W5500-to-ESP32 )
80
81
* [ Examples] ( #examples )
81
82
* [ 1. Async_AdvancedWebServer] ( examples/Async_AdvancedWebServer )
82
83
* [ 2. Async_AdvancedWebServer_MemoryIssues_SendArduinoString] ( examples/Async_AdvancedWebServer_MemoryIssues_SendArduinoString )
@@ -226,7 +227,7 @@ to apply the better and faster **asynchronous** feature of the **powerful** [ESP
226
227
## Prerequisites
227
228
228
229
1 . [ ` Arduino IDE 1.8.19+ ` for Arduino] ( https://github.com/arduino/Arduino ) . [ ![ GitHub release] ( https://img.shields.io/github/release/arduino/Arduino.svg )] ( https://github.com/arduino/Arduino/releases/latest )
229
- 2 . [ ` ESP32 Core 2.0.5 + ` ] ( https://github.com/espressif/arduino-esp32 ) for ESP32-based boards. ESP32 Latest Core [ ![ Latest release] ( https://img.shields.io/github/release/espressif/arduino-esp32.svg )] ( https://github.com/espressif/arduino-esp32/releases/latest/ )
230
+ 2 . [ ` ESP32 Core 2.0.6 + ` ] ( https://github.com/espressif/arduino-esp32 ) for ESP32-based boards. ESP32 Latest Core [ ![ Latest release] ( https://img.shields.io/github/release/espressif/arduino-esp32.svg )] ( https://github.com/espressif/arduino-esp32/releases/latest/ )
230
231
3 . [ ` AsyncTCP library v1.1.1+ ` ] ( https://github.com/me-no-dev/AsyncTCP ) .
231
232
232
233
---
@@ -1474,6 +1475,45 @@ build_flags =
1474
1475
1475
1476
* NOTE* : By enabling ` ASYNCWEBSERVER_REGEX ` , ` <regex> ` will be included. This will add an 100k to your binary.
1476
1477
1478
+ ---
1479
+ ---
1480
+
1481
+
1482
+ ### How to connect W5500 to ESP32
1483
+
1484
+ You can change the ` INT ` pin to another one. Default is ` GPIO4 `
1485
+
1486
+ ``` cpp
1487
+ // Must connect INT to GPIOxx or not working
1488
+ #define INT_GPIO 4
1489
+ ```
1490
+
1491
+ ---
1492
+
1493
+ #### W5500
1494
+
1495
+ <p align =" center " >
1496
+ <img src="https://github.com/khoih-prog/AsyncWebServer_ESP32_W5500/raw/main/pics/W5500.png">
1497
+ </p >
1498
+
1499
+ <p align =" center " >
1500
+ <img src="https://github.com/khoih-prog/AsyncWebServer_ESP32_W5500/raw/main/pics/W5500_small.png">
1501
+ </p >
1502
+
1503
+ ---
1504
+
1505
+
1506
+ | W5500| <--->| ESP32|
1507
+ | :-:| :-:| :-:|
1508
+ | MOSI| <--->| GPIO23|
1509
+ | MISO| <--->| GPIO19|
1510
+ | SCK| <--->| GPIO18|
1511
+ | SS| <--->| GPIO5|
1512
+ | INT| <--->| GPIO4|
1513
+ | RST| <--->| RST|
1514
+ | GND| <--->| GND|
1515
+ | 3.3V| <--->| 3.3V|
1516
+
1477
1517
1478
1518
---
1479
1519
---
@@ -1503,7 +1543,7 @@ build_flags =
1503
1543
1504
1544
### Example [ Async_AdvancedWebServer] ( examples/Async_AdvancedWebServer )
1505
1545
1506
- https://github.com/khoih-prog/AsyncWebServer_ESP32_W5500/blob/59807080165dcb2395f8591d73a0c7b52f2de138 /examples/Async_AdvancedWebServer/Async_AdvancedWebServer.ino#L41-L256
1546
+ https://github.com/khoih-prog/AsyncWebServer_ESP32_W5500/blob/80ac7eebf5d0125626cea309333315c4f0565efd /examples/Async_AdvancedWebServer/Async_AdvancedWebServer.ino#L41-L256
1507
1547
1508
1548
1509
1549
You can access the Async Advanced WebServer @ the server IP
@@ -1524,7 +1564,7 @@ Following are debug terminal output and screen shots when running example [Async
1524
1564
1525
1565
``` cpp
1526
1566
Start AsyncMultiWebServer_ESP32_W5500 on ESP32_DEV with ESP32_W5500
1527
- AsyncWebServer_ESP32_W5500 v1.6.3 for core v2.0.0 +
1567
+ AsyncWebServer_ESP32_W5500 v1.6.4 for core v2.0.0 +
1528
1568
[AWS] Default SPI pinout:
1529
1569
[AWS] SPI_HOST: 2
1530
1570
[AWS] MOSI: 23
@@ -1574,7 +1614,7 @@ Following is the debug terminal and screen shot when running example [Async_Adva
1574
1614
1575
1615
```cpp
1576
1616
Start Async_AdvancedWebServer_MemoryIssues_Send_CString on ESP32_DEV with ESP32_W5500
1577
- AsyncWebServer_ESP32_W5500 v1.6.3 for core v2.0.0+
1617
+ AsyncWebServer_ESP32_W5500 v1.6.4 for core v2.0.0+
1578
1618
[AWS] Default SPI pinout:
1579
1619
[AWS] SPI_HOST: 2
1580
1620
[AWS] MOSI: 23
@@ -1606,7 +1646,7 @@ While using `Arduino String`, the HEAP usage is very large
1606
1646
1607
1647
``` cpp
1608
1648
Start Async_AdvancedWebServer_MemoryIssues_SendArduinoString on ESP32_DEV with ESP32_W5500
1609
- AsyncWebServer_ESP32_W5500 v1.6.3 for core v2.0.0 +
1649
+ AsyncWebServer_ESP32_W5500 v1.6.4 for core v2.0.0 +
1610
1650
[AWS] Default SPI pinout:
1611
1651
[AWS] SPI_HOST: 2
1612
1652
[AWS] MOSI: 23
@@ -1646,7 +1686,7 @@ Following is debug terminal output when running example [Async_AdvancedWebServer
1646
1686
1647
1687
```cpp
1648
1688
Start Async_AdvancedWebServer_SendChunked on ESP32_DEV with ESP32_W5500
1649
- AsyncWebServer_ESP32_W5500 v1.6.3 for core v2.0.0+
1689
+ AsyncWebServer_ESP32_W5500 v1.6.4 for core v2.0.0+
1650
1690
[AWS] Default SPI pinout:
1651
1691
[AWS] SPI_HOST: 2
1652
1692
[AWS] MOSI: 23
@@ -1714,7 +1754,7 @@ Following is debug terminal output when running example [AsyncWebServer_SendChun
1714
1754
1715
1755
``` cpp
1716
1756
Start AsyncWebServer_SendChunked on ESP32_DEV with ESP32_W5500
1717
- AsyncWebServer_ESP32_W5500 v1.6.3 for core v2.0.0 +
1757
+ AsyncWebServer_ESP32_W5500 v1.6.4 for core v2.0.0 +
1718
1758
[AWS] Default SPI pinout:
1719
1759
[AWS] SPI_HOST: 2
1720
1760
[AWS] MOSI: 23
@@ -1765,7 +1805,7 @@ Following is debug terminal output when running example [Async_WebSocketsServer]
1765
1805
1766
1806
```cpp
1767
1807
Starting Async_WebSocketsServer on ESP32_DEV with ESP32_W5500
1768
- AsyncWebServer_ESP32_W5500 v1.6.3 for core v2.0.0+
1808
+ AsyncWebServer_ESP32_W5500 v1.6.4 for core v2.0.0+
1769
1809
[AWS] Default SPI pinout:
1770
1810
[AWS] SPI_HOST: 2
1771
1811
[AWS] MOSI: 23
@@ -1795,7 +1835,7 @@ Following is debug terminal output when running example [Async_HTTPBasicAuth](ex
1795
1835
1796
1836
``` cpp
1797
1837
Start Async_HTTPBasicAuth on ESP32_DEV with ESP32_W5500
1798
- AsyncWebServer_ESP32_W5500 v1.6.3 for core v2.0.0 +
1838
+ AsyncWebServer_ESP32_W5500 v1.6.4 for core v2.0.0 +
1799
1839
[AWS] Default SPI pinout:
1800
1840
[AWS] SPI_HOST: 2
1801
1841
[AWS] MOSI: 23
0 commit comments