{"id":28198802,"url":"https://github.com/marksowell/esp32-web-lora-demo-ota-multi-device","last_synced_at":"2026-04-16T14:02:26.067Z","repository":{"id":286369911,"uuid":"870503147","full_name":"marksowell/esp32-web-lora-demo-ota-multi-device","owner":"marksowell","description":"ESP32 Web + LoRa Demo with OTA \u0026 Multi-Device Support. This project demonstrates a web interface for ESP32 devices with LoRa communication, Over-the-Air (OTA) updates, and multi-device messaging capabilities. It supports both WiFi and Ethernet for flexible connectivity.","archived":false,"fork":false,"pushed_at":"2024-10-13T21:11:31.000Z","size":1252,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-13T03:43:44.405Z","etag":null,"topics":["esp32","lora","lora-application","lora-communication","lora-device","platformio"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marksowell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-10T06:57:22.000Z","updated_at":"2025-03-12T21:04:18.000Z","dependencies_parsed_at":"2025-04-06T02:45:32.612Z","dependency_job_id":null,"html_url":"https://github.com/marksowell/esp32-web-lora-demo-ota-multi-device","commit_stats":null,"previous_names":["marksowell/esp32-web-lora-demo-ota-multi-device"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marksowell/esp32-web-lora-demo-ota-multi-device","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksowell%2Fesp32-web-lora-demo-ota-multi-device","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksowell%2Fesp32-web-lora-demo-ota-multi-device/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksowell%2Fesp32-web-lora-demo-ota-multi-device/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksowell%2Fesp32-web-lora-demo-ota-multi-device/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marksowell","download_url":"https://codeload.github.com/marksowell/esp32-web-lora-demo-ota-multi-device/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksowell%2Fesp32-web-lora-demo-ota-multi-device/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31888935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp32","lora","lora-application","lora-communication","lora-device","platformio"],"created_at":"2025-05-16T18:14:03.057Z","updated_at":"2026-04-16T14:02:26.031Z","avatar_url":"https://github.com/marksowell.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP32 Web + LoRa Demo with OTA \u0026 Multi-Device Support\nESP32 Web + LoRa Demo with OTA \u0026amp; Multi-Device Support. This project demonstrates a web interface for ESP32 devices with LoRa communication, Over-the-Air (OTA) updates, and multi-device messaging capabilities. It supports both WiFi and Ethernet for flexible connectivity.\n\n## Table of Contents\n\n- [Features](#features)\n- [Hardware Requirements](#hardware-requirements)\n- [Software Requirements](#software-requirements)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Usage](#usage)\n- [Web Interface](#web-interface)\n- [OTA Updates](#ota-updates)\n- [Troubleshooting](#troubleshooting)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n- **Web Interface**: User-friendly interface to send messages, view logs, and configure settings.\n  \n  \u003cimg src=\"./images/Index.png\" alt=\"Index\" width=\"400\"/\u003e  \n- **LoRa Communication**: Send and receive messages between two devices using LoRa technology.  \n  \n  \u003cimg src=\"./images/Lora_Message_Modal.png\" alt=\"Lora Message Modal\" width=\"400\"/\u003e  \n- **OTA Updates**: Over-the-air firmware updates using ArduinoOTA.\n- **Logging**: System, HTTP, and LoRa logs stored with timestamps.\n- **Persistent Settings**: Device settings stored using Preferences library. \n  \n  \u003cimg src=\"./images/Settings.png\" alt=\"Settings\" width=\"400\"/\u003e  \n- **Ethernet and Wi-Fi Support**: Connect via Ethernet (PoE) or Wi-Fi.\n\n## Hardware Requirements\n\n- **2 x Olimex ESP32-POE-ISO** boards\n- **2 x Olimex LoRa915 modules**\n- **Jumper wires or UEXT connectors** to connect the LoRa modules to the ESP32 boards\n- **Power** (PoE or USB)\n\n  \u003cimg src=\"./images/esp32-poe-iso.png\" alt=\"esp32-poe-iso\" width=\"300\"/\u003e  \n\n## Software Requirements\n\n- **Arduino IDE** or **PlatformIO**\n- **ESP32 Board Support Package**\n- **Dependencies**:\n    - `WiFi.h`\n    - `ETH.h`\n    - `AsyncTCP.h`\n    - `ESPAsyncWebServer.h`\n    - `WiFiUdp.h`\n    - `ArduinoOTA.h`\n    - `NTPClient.h`\n    - `SPI.h`\n    - `LoRa.h`\n    - `deque`\n    - `time.h`\n    - `LittleFS.h`\n    - `Preferences.h`\n    - `ArduinoJson.h`\n\n## Installation\n\n### 1. Clone the Repository\n\n`git clone https://github.com/marksowell/esp32-web-lora-demo-ota-multi-device.git`\n\n### 2. Install Dependencies\n\n#### PlatformIO\n\nDependencies are specified in the `platformio.ini` file.\n\n#### Arduino IDE\n\nUse the Library Manager to install the required libraries.\n\n### 3. Hardware Setup\n\n#### Connections\n\n- Connect the LoRa915 module to the ESP32-POE-ISO via UEXT connector or jumper wires.\n    \n- Pin connections:\n    \n    |LoRa915 Module|ESP32-POE-ISO|\n    |---|---|\n    |MISO|GPIO 19|\n    |MOSI|GPIO 23|\n    |SCK|GPIO 18|\n    |SS|GPIO 5|\n    |RST|GPIO 14|\n    |DIO0|GPIO 26|\n    |3.3V|3.3V|\n    |GND|GND|\n    \n\n#### Antenna\n\n- Ensure that an appropriate antenna is connected to the LoRa915 module.\n\n### 4. Flash the Firmware\n\n- Open the project in your development environment.\n    \n- Update Wi-Fi credentials in `main.cpp`:\n  \n  ```\n  const char* ssid = \"Your_SSID\";\n  const char* password = \"Your_Password\";\n  ```\n  \n- Compile and upload the firmware to both ESP32 devices.\n\n## Configuration\n\n### Device Settings\n\n- **Device Number**: Unique identifier for the device.\n- **Site ID**: Identifier to match messages between devices (default is `default_site`).\n- **Logging Settings**: Enable or disable system, HTTP, and LoRa logs.\n\n### Accessing the Web Interface\n\n- Connect to the ESP32 device via its IP address (displayed in Serial Monitor).\n- The web interface allows you to:\n    - Send LoRa messages.\n    - View connection and system logs.\n    - Check system status.\n    - Update device settings.\n    - Reboot the device.\n\n## Usage\n\n### Sending a LoRa Message\n\n1. Access the web interface of **Device A**.\n2. Navigate to the **Home** page.\n3. Enter a custom message or use the test message.\n4. Click **Send**.\n\n### Receiving a LoRa Message\n\n- **Device B** will automatically receive messages sent from **Device A** if the `siteID` matches.\n- Received messages are displayed via a pop-up on the web interface and logged in the system logs.\n\n## Web Interface\n\nThe web interface is designed for ease of use:\n\n- **Home**: Send LoRa messages.\n- **Logs**: View system, HTTP, and LoRa logs.\n- **Status**: Check device uptime, free memory, signal strength, and other system information.\n- **Settings**: Update device number, site ID, and logging preferences.\n- **Reboot**: Soft-reboot the device.\n\n## OTA Updates\n\n- OTA updates are enabled via `ArduinoOTA`.\n- To upload a new firmware:\n    - Use the Arduino IDE or PlatformIO's OTA upload feature.\n    - The device will log OTA progress and reboot upon completion.\n\n## Troubleshooting\n\n### LoRa Initialization Failed\n\n- Check hardware connections.\n- Ensure the correct frequency (`915E6`) is set for the LoRa module.\n- Verify that the LoRa module is receiving sufficient power.\n\n### Messages Not Being Received\n\n- Confirm both devices have the same `siteID`.\n- Ensure devices are within range and antennas are connected.\n- Adjust LoRa parameters (spreading factor, bandwidth) if necessary.\n\n### Web Interface Not Accessible\n\n- Verify the device's IP address via the Serial Monitor.\n- Ensure the device is connected to the network.\n- Check firewall settings that may block access.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.\n\n### Guidelines\n\n- Follow the existing code style.\n- Include comments and documentation where appropriate.\n- Test changes thoroughly on actual hardware.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksowell%2Fesp32-web-lora-demo-ota-multi-device","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarksowell%2Fesp32-web-lora-demo-ota-multi-device","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksowell%2Fesp32-web-lora-demo-ota-multi-device/lists"}