This guide demonstrates how to stream JPEG images over a WebRTC data channel using ESP32 hardware.
Device | Image |
---|---|
Freenove ESP32-S3-WROOM Board | ![]() |
XIAO ESP32S3 Sense | ![]() |
ESP32-EYE | ![]() |
M5Camera | ![]() |
Bash
$ git clone -b v5.2.2 https://github.com/espressif/esp-idf.git
$ cd esp-idf
$ source install.sh
$ source export.sh
Bash
$ git clone https://github.com/sepfy/libpeer
$ cd libpeer/examples/esp32
Go to the test website and copy the URL
Bash
$ idf.py menuconfig
# Peer Connection Configuration -> Signaling URL
# Example Connection Configuration -> WiFi SSID and WiFi Password
Bash
$ idf.py build
Bash
$ idf.py flash
Back to the test website and click Connect button
To create a project from this example, run:
idf.py create-project-from-example "sepfy/libpeer=0.0.3:esp32"