eliabruni / pear-esp32-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pear-esp32-examples

Stream JPEG over WebRTC datachannel with ESP32-EYE.

Hardware

ESP32-EYE

Instructions

Install esp-idf

at lease v5.0.0

$ git clone -b v5.0.2 https://github.com/espressif/esp-idf.git
$ cd esp-idf
$ source install.sh
$ source export.sh

Download

$ git clone https://github.com/sepfy/pear-esp32-examples.git
$ cd pear-esp32-examples
$ idf.py add-dependency "espressif/esp32-camera^2.0.4"
$ idf.py add-dependency "mdns"
$ git submodule init && git submodule update
$ cd components/srtp
$ git submodule init && git submodule update

Configure

$ idf.py menuconfig
# Choose Example Configuration and change the SSID and password

Build

$ idf.py build

Test

$ idf.py flash

Check the serial port message:

I (12936) webrtc: MQTT_EVENT_CONNECTED
I (12946) webrtc: sent subscribe successful, msg_id=5876
I (13246) webrtc: MQTT_EVENT_SUBSCRIBED, msg_id=5876
I (13246) webrtc: open browser and visit https://sepfy.github.io/webrtc?deviceId=esp32-xxxxxxxxxxxx

Open the browser and visit the website showing by serial port message image

About


Languages

Language:C 97.2%Language:CMake 2.8%