This example demonstrates connectivity between two agents using the libjuice library.
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
|---|
- ESP-IDF (tested with release/v5.3)
- libjuice (fork from https://github.com/paullouisageneau/libjuice)
-
Set up the ESP-IDF environment:
. $HOME/esp/esp-idf/export.sh
-
Navigate to the example directory:
cd libjuice/examples/connectivity -
Configure Set the Wi-Fi SSID and password under
Example Connection Configuration:idf.py menuconfig
-
Build the project:
idf.py build
-
Flash the project to your ESP32 device:
idf.py flash
-
Monitor the output:
idf.py monitor
This example creates two agents using the libjuice library and establishes connectivity between them using STUN and TURN servers. The agents exchange messages to verify the connection.
The example uses the following configuration options:
- STUN server:
stun.cloudflare.com - TURN server: (commented out in the code, can be enabled if needed)
- Local port range: 60000-61000
This project is licensed under the Mozilla Public License, v. 2.0. See the LICENSE file for details.