All Projects → DominikN → ESP32-to-ESP32

DominikN / ESP32-to-ESP32

Licence: MIT License
ESP32 to ESP32 communication example using Arduino framework. Secure, P2P, low latency connection between devices is established. Button connected to the first ESP32 controlls LED connected to second ESP32.

Programming Languages

C++
36643 projects - #6 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to ESP32-to-ESP32

Low power TTGO T-beam
Low power consumption for TTGO t-beam
Stars: ✭ 45 (+80%)
Mutual labels:  esp32, wifi
low-power-wifi
Experiments in low-power-wifi on esp8266, esp32, and ...
Stars: ✭ 35 (+40%)
Mutual labels:  esp32, wifi
Autosteer ESP
Advanced Autosteer Sketch for ESP32 - WiFi Version
Stars: ✭ 34 (+36%)
Mutual labels:  esp32, wifi
Esp32 Obd2 Emulator
Open-source OBD-II emulator based on an ESP32 + CAN transceiver IC, controllable via WiFi through a simple web UI (or via API)
Stars: ✭ 207 (+728%)
Mutual labels:  esp32, wifi
issues
Issue Tracker for ESPHome
Stars: ✭ 182 (+628%)
Mutual labels:  esp32, wifi
Esp32marauder
A suite of WiFi/Bluetooth offensive and defensive tools for the ESP32
Stars: ✭ 233 (+832%)
Mutual labels:  esp32, wifi
wireless-esp8266-dap
ESP8266 Wireless Debugger. Based on CMSIS-DAP v2.0.0. Optional 40MHz SPI acceleration, etc. ESP8266 无线调试器
Stars: ✭ 154 (+516%)
Mutual labels:  esp32, wifi
Blinker Doc
blinker中文文档
Stars: ✭ 139 (+456%)
Mutual labels:  esp32, wifi
LibTeleinfo
Librairie Universelle Teleinformation (TIC)
Stars: ✭ 77 (+208%)
Mutual labels:  esp32, wifi
esp32-internet-ota
ESP32 + GitHub Actions + Husarnet. A boilerplate project for ESP32 allowing in-field firmware update using GitHub Actions workflow.
Stars: ✭ 28 (+12%)
Mutual labels:  esp32, husarnet
Espmqttclient
Wifi and MQTT handling for ESP8266 and ESP32
Stars: ✭ 169 (+576%)
Mutual labels:  esp32, wifi
WUD-Ducky
An ESP32-S2 RubberDucky script parser, with Mouse/PenDrive support 🦆
Stars: ✭ 33 (+32%)
Mutual labels:  esp32, wifi
Feature Requests
ESPHome Feature Request Tracker
Stars: ✭ 160 (+540%)
Mutual labels:  esp32, wifi
ESP32 Thing
Development platform for the Espressif ESP32 WiFi/Microcontroller SoC
Stars: ✭ 66 (+164%)
Mutual labels:  esp32, wifi
Esp32 Projects
ESP32 好玩、有趣、实用的项目
Stars: ✭ 142 (+468%)
Mutual labels:  esp32, wifi
OctoWifi-LEDs-Controller
LEDs driver for ESP32 ( support ART-NET, RGB888, RGB565, Z888 )
Stars: ✭ 16 (-36%)
Mutual labels:  esp32, wifi
Perswifimanager
Persistent WiFiManager Arduino library for ESP8266
Stars: ✭ 106 (+324%)
Mutual labels:  esp32, wifi
Esp wifimanager
This is an ESP32 / ESP8266 WiFi Connection Manager with fallback web configuration portal. Use this library for configuring ESP32, ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson 6.0.0+ as well as 5.13.5- .
Stars: ✭ 125 (+400%)
Mutual labels:  esp32, wifi
Eduponics-Mini
MicroPython MQTT & code example for Eduponics mini ESP32 learning kit
Stars: ✭ 41 (+64%)
Mutual labels:  esp32, wifi
AG NTRIP ESP
AG Rooftop controller with NTRIP client and IMU (ESP32 Controller)
Stars: ✭ 25 (+0%)
Mutual labels:  esp32, wifi

ESP32-to-ESP32

GitHub stars

Build firmware GitHub license

ESP32 to ESP32 communication example using Arduino framework. Secure, P2P, low latency connection between devices is established. Button connected to the first ESP32 controlls LED connected to second ESP32.

  • ESP32 acts both as a HTTP server (based on ESPAsyncWebServer library) and HTTP client (based on AsyncTCP)
  • ESP32 automatically detects all peers in the same Husarnet VPN network
  • when the button is pressed, HTTP request is sent to all other peers and turn the LED on
  • when the button is released, HTTP request is sent to all other peers and turn on the LED off

Default hardware configuration:

  • LED is connected to pin: 27
  • button is connected to pin: 0

Running a project

  1. Clone this repo

  2. Open the repo folder using VSC with installed Platformio extension

  3. Provide your Wi-Fi networks credentials here:

// WiFi credentials
const char* wifiNetworks[][2] = {
  {"wifi-ssid-one", "wifi-pass-one"},
  {"wifi-ssid-two", "wifi-pass-two"},
} 
  1. Get your Husarnet VPN Join Code (allowing you to connect devices to the same VPN network)

You will find your Join Code at https://app.husarnet.com
-> Click on the desired network
-> Add element button
-> Join Code tab

  1. Place your Husarnet Join Code here:
const char *husarnetJoinCode = "fc94:b01d:1803:8dd8:b293:5c7d:7639:932a/xxxxxxxxxxxxxxxxxxxxxx";
  1. Flash at least two ESP32 devices and enjoy

Note that each ESP32 runs it's own HTTP server, so you can test not only ESP32 <> ESP32 communication but also web browser <> ESP32 (by just typing http://random:8001/led/1/state/0). Remember to use the same Join Code to connect your laptop to the same VPN network as ESP32.

Extra notes

If you want to add Over The Air (OTA) firmware update from GitHub Actions workflow, check out this project - https://github.com/husarnet/esp32-internet-ota

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].