Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Connectivity Example

This example demonstrates connectivity between two agents using the libjuice library.

Supported Targets

Supported Targets ESP32 ESP32-C2 ESP32-C3 ESP32-C6 ESP32-H2 ESP32-S2 ESP32-S3

Prerequisites

Building the Example

  1. Set up the ESP-IDF environment:

    . $HOME/esp/esp-idf/export.sh
  2. Navigate to the example directory:

    cd libjuice/examples/connectivity
  3. Configure Set the Wi-Fi SSID and password under Example Connection Configuration:

    idf.py menuconfig
  4. Build the project:

    idf.py build

Flashing the Example

  1. Flash the project to your ESP32 device:

    idf.py flash
  2. Monitor the output:

    idf.py monitor

Description

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.

Configuration

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

License

This project is licensed under the Mozilla Public License, v. 2.0. See the LICENSE file for details.