ESP32 Local Device-to-Device Communication Without Internet
1 February 2026
Dr MS Swaminathan
Internet of Things (IoT)
Embedded Systems
Wireless Communication
Most IoT systems rely heavily on internet connectivity or centralized routers for communication between devices. In scenarios such as remote locations, disaster zones, highways, or secure industrial environments, internet access may be unavailable or unreliable. There is a need for a robust, low-latency, and direct communication mechanism between IoT devices without dependency on the internet.
To establish a reliable wireless network between two ESP32 development boards and enable direct data transfer between them without using the internet or any external router.
The project implements peer-to-peer communication between two ESP32 devices using the ESP-NOW protocol. ESP-NOW allows direct device-to-device data exchange over Wi-Fi radio without requiring an access point or internet connection. One ESP32 acts as a sender and the other as a receiver, exchanging structured data packets efficiently and securely.
- Two ESP32 development boards
- Peer-to-peer wireless communication
- No router, no internet dependency
- Communication based on device MAC addresses
- ESP32 Development Boards (2 units)
- USB cables
- Laptop / PC
- Arduino IDE
- ESP32 Board Package (Espressif)
- ESP-NOW Protocol
- Embedded C/C++
- Install and configure ESP32 board support in Arduino IDE.
- Retrieve the MAC address of each ESP32 device.
- Initialize Wi-Fi in station mode on both devices.
- Initialize ESP-NOW protocol.
- Register peer devices using MAC addresses.
- Define a structured data format for communication.
- Implement sender logic to transmit data periodically.
- Implement receiver callback function to process incoming data.
- Validate communication using Serial Monitor.
- Sender ESP32 generates or collects data.
- Data is packaged into a structured format.
- ESP-NOW transmits data wirelessly using MAC addressing.
- Receiver ESP32 captures data using a receive callback.
- Received data is displayed or processed further.
- Internet-independent communication
- Low latency data transfer
- Low power consumption
- Scalable to multiple ESP32 nodes
- Suitable for real-time IoT and IIoT applications
- Vehicle-to-vehicle communication
- Sensor-to-controller systems
- Smart agriculture
- Industrial automation
- Emergency and disaster response systems
- Limited payload size per ESP-NOW packet
- MAC address management for multiple devices
- Debugging wireless communication issues
- Add encryption for secure data transmission
- Implement multi-node ESP-NOW mesh
- Integrate sensors and actuators
- Add acknowledgment and retry mechanisms
- Combine with gateway node for cloud upload (optional)
This project successfully demonstrates local, reliable, and efficient communication between two ESP32 devices without relying on internet connectivity. The ESP-NOW protocol proves to be an effective solution for decentralized IoT systems where speed, reliability, and independence from infrastructure are critical.
- Espressif ESP-NOW Documentation
- ESP32 Technical Reference Manual
- Arduino ESP32 Core Documentation