# pear-esp32-examples
**Repository Path**: 0xsky/pear-esp32-examples
## Basic Information
- **Project Name**: pear-esp32-examples
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-03-03
- **Last Updated**: 2025-03-03
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# pear-esp32-examples
The project will be closed and will be part of [libpeer](https://github.com/sepfy/libpeer/tree/main/examples/esp32)
Stream JPEG over WebRTC datachannel with ESP32-EYE.
## Hardware
[ESP32-EYE](https://github.com/espressif/esp-who/blob/master/docs/en/get-started/ESP-EYE_Getting_Started_Guide.md)
## Instructions
### Install esp-idf
at lease v5.0.0
```bash
$ git clone -b v5.0.2 https://github.com/espressif/esp-idf.git
$ cd esp-idf
$ source install.sh
$ source export.sh
```
### Download
```bash
$ 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
```bash
$ idf.py menuconfig
# Choose Example Configuration and change the SSID and password
```
### Build
```bash
$ idf.py build
```
### Test
```bash
$ 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
