You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
idf.py menuconfig # Configure WiFi/Ethernet and WebSocket URI
27
+
idf.py build
28
+
```
29
+
30
+
3.**Flash and monitor:**
31
+
```bash
32
+
idf.py -p PORT flash monitor
33
+
```
34
+
35
+
4.**Run tests:**
36
+
```bash
37
+
pytest .
38
+
```
4
39
5
40
## How to Use Example
6
41
@@ -15,6 +50,27 @@ This example can be executed on any ESP32 board, the only required interface is
15
50
* Configure the websocket endpoint URI under "Example Configuration", if "WEBSOCKET_URI_FROM_STDIN" is selected then the example application will connect to the URI it reads from stdin (used for testing)
16
51
* To test a WebSocket client example over TLS, please enable one of the following configurations: `CONFIG_WS_OVER_TLS_MUTUAL_AUTH` or `CONFIG_WS_OVER_TLS_SERVER_AUTH`. See the sections below for more details.
17
52
53
+
### Pre-configured SDK Configurations
54
+
55
+
This example includes several pre-configured `sdkconfig.ci.*` files for different testing scenarios:
56
+
57
+
***sdkconfig.ci** - Default configuration with WebSocket over Ethernet (IP101 PHY, ESP32, IPv6) and hardcoded URI.
58
+
***sdkconfig.ci.plain_tcp** - WebSocket over plain TCP (no TLS, URI from stdin) using Ethernet (IP101 PHY, ESP32, IPv6).
59
+
***sdkconfig.ci.mutual_auth** - WebSocket with mutual TLS authentication (client/server certificate verification, skips CN check) and URI from stdin.
60
+
***sdkconfig.ci.dynamic_buffer** - WebSocket with dynamic buffer allocation, Ethernet (IP101 PHY, ESP32, IPv6), and hardcoded URI.
* Mutual Authentication: When `CONFIG_WS_OVER_TLS_MUTUAL_AUTH=y` is enabled, it's essential to provide valid certificates for both the server and client.
@@ -73,7 +129,36 @@ idf.py -p PORT flash monitor
73
129
74
130
(To exit the serial monitor, type ``Ctrl-]``.)
75
131
76
-
See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.
132
+
See the [ESP-IDF Getting Started Guide](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html) for full steps to configure and use ESP-IDF to build projects.
133
+
134
+
## Testing with pytest
135
+
136
+
### Install Dependencies
137
+
138
+
Before running the pytest tests, you need to install the required Python packages:
139
+
140
+
```
141
+
pip install -r esp-protocols/ci/requirements.txt
142
+
```
143
+
144
+
### Run pytest
145
+
146
+
After installing the dependencies, you can run the pytest tests:
0 commit comments