EventsThe 1st International Online Conference on Technologies
Published
This submission belongs to the session S1. Information and Communication Technologies of the event The 1st International Online Conference on Technologies
Published date
06 Nov, 2026
Academic Editor
author-avatarAchilles D. Boursianis
Contribution&Funding
Conceptualization,
[Peter Tsonkov]
Methodology,
[Peter Tsonkov] ; [Fatima Sapundzhi] ; [Slavi Georgiev]
Software,
[Peter Tsonkov]
Validation,
[Fatima Sapundzhi] ; [Slavi Georgiev]
Formal analysis,
[Fatima Sapundzhi]
Investigation,
[Peter Tsonkov] ; [Slavi Georgiev]
Resources,
[Peter Tsonkov]
Writing - original draft,
[Slavi Georgiev]
Writing - review,
[editing] ; [Fatima Sapundzhi] ; [Slavi Georgiev] ; [Peter Tsonkov]
Supervision,
[Fatima Sapundzhi]
Project administration,
[Fatima Sapundzhi]
Funding acquisition,
[Slavi Georgiev]
Funding: --
Citation
Peter Tsonkov, Fatima Sapundzhi, Slavi Georgiev, Lightweight Brokerless Clustering for Self-Recovering ESP8266 Edge IoT Systems, in Proceedings of The 1st International Online Conference on Technologies, 11 November–13 November 2026, MDPI: Basel, Switzerland
Share
Email
Facebook
Twitter
LinkedIn

Lightweight Brokerless Clustering for Self-Recovering ESP8266 Edge IoT Systems

image
image
1. Department of Communication and Computer Engineering, South-West University “Neofit Rilski”, Blagoevgrad, 2700, Bulgaria
2. Department of Applied Mathematics and Statistics, University of Ruse “Angel Kanchev”, Ruse, 7004, Bulgaria
3. Department of Informational Modeling, Institute of Mathematics and Informatics, Bulgarian Academy of Sciences, Sofia, 1113, Bulgaria
Abstract

Introduction: High availability in resource-constrained Internet of Things (IoT) deployments is often achieved through centralized message brokers or distributed consensus services. Although effective, these approaches increase architectural complexity, infrastructure requirements, and dependence on external components. This study presents a lightweight brokerless clustering library for ESP8266-based edge IoT systems, designed to support autonomous coordination and local recovery.

Methods: The library was implemented in C++ for PlatformIO and the Arduino development environment. ESP-NOW broadcast frames were used for peer discovery and periodic heartbeat exchange. Each node maintained a bounded peer table and independently elected the node with the lowest MAC address as cluster master. A boot identifier differentiated restarted nodes from records associated with their previous execution sessions. Functional evaluation covered initial cluster formation, master-node failure, node restart, dynamic node addition, and node rejoining. Firmware build statistics and main-loop timing measurements were used to estimate memory and computational overhead.

Results: Under stable communication conditions, all participating nodes converged to the same master and elected a replacement automatically after master loss. Restarted and newly introduced nodes rejoined the cluster without manual reconfiguration. The complete evaluated firmware used 34.9% of the available RAM and 26.3% of the program flash memory. Cluster-maintenance operations accounted for approximately 31% of the measured main-loop execution time. The system operated without an MQTT broker, centralized coordinator, or persistent backend infrastructure.

Conclusions: The proposed library provides a practical coordination layer for small ESP8266-based sensing and control clusters that require autonomous local recovery with limited memory, processing capacity, and supporting infrastructure. The results demonstrate the feasibility of lightweight brokerless coordination on constrained edge devices, while further evaluation under packet loss, interference, larger cluster sizes, and prolonged operation remains necessary.

Keywords
brokerless clustering
ESP8266
ESP-NOW
edge IoT
master election
autonomous recovery
Shared Charging Resource Coordination in Electric Vehicle Fleet Routing
an integrated machine learning framework for retail sales forecasting