Content area

Abstract

The rapid expansion of the Internet of Things (IoT) demands scalable, efficient, and user-friendly gateway solutions that seamlessly connect resource-constrained edge devices to cloud services. Low-cost, widely available microcontrollers, such as the ESP32 and its ecosystem peers, offer integrated Wi-Fi/Bluetooth connectivity, low power consumption, and a mature developer toolchain at a bill of materials cost of only a few dollars. For smart-home deployments where budgets, energy consumption, and maintainability are critical, these characteristics make MCU-class gateways a pragmatic alternative to single-board computers, enabling always-on local control with minimal overhead. This paper presents the design and implementation of an embedded IoT gateway powered by the ESP32 microcontroller. By using lightweight communication protocols such as Message Queuing Telemetry Transport (MQTT) and REST APIs, the proposed architecture supports local control, distributed intelligence, and secure on-site data storage, all while minimizing dependence on cloud infrastructure. A real-world deployment in an educational building demonstrates the gateway’s capability to monitor energy consumption, execute control commands, and provide an intuitive web-based dashboard with minimal resource overhead. Experimental results confirm that the solution offers strong performance, with RAM usage ranging between 3.6% and 6.8% of available memory (approximately 8.92 KB to 16.9 KB). The initial loading of the single-page application (SPA) results in a temporary RAM spike to 52.4%, which later stabilizes at 50.8%. These findings highlight the ESP32’s ability to serve as a functional IoT gateway with minimal resource demands. Areas for future optimization include improved device discovery mechanisms and enhanced resource management to prolong device longevity. Overall, the gateway represents a cost-effective and vendor-agnostic platform for building resilient and scalable IoT ecosystems.

Details

1009240
Business indexing term
Company / organization
Title
Lightweight Embedded IoT Gateway for Smart Homes Based on an ESP32 Microcontroller
Author
Serepas Filippos 1   VIAFID ORCID Logo  ; Papias Ioannis 2   VIAFID ORCID Logo  ; Christakis Konstantinos 2   VIAFID ORCID Logo  ; Dimitropoulos Nikos 2   VIAFID ORCID Logo  ; Marinakis Vangelis 2   VIAFID ORCID Logo 

 HOLISTIC SA, 507 Mesogeion Av Ag. Paraskevi, 153 43 Athens, Greece 
 Decision Support Systems Laboratory, School of Electrical & Computer Engineering, National Technical University of Athens, 9 Iroon Polytechniou str., 157 80 Athens, Greece; [email protected] (I.P.); [email protected] (K.C.); [email protected] (N.D.); [email protected] (V.M.) 
Publication title
Computers; Basel
Volume
14
Issue
9
First page
391
Number of pages
20
Publication year
2025
Publication date
2025
Publisher
MDPI AG
Place of publication
Basel
Country of publication
Switzerland
Publication subject
e-ISSN
2073431X
Source type
Scholarly Journal
Language of publication
English
Document type
Journal Article
Publication history
 
 
Online publication date
2025-09-16
Milestone dates
2025-08-01 (Received); 2025-09-10 (Accepted)
Publication history
 
 
   First posting date
16 Sep 2025
ProQuest document ID
3254483353
Document URL
https://www.proquest.com/scholarly-journals/lightweight-embedded-iot-gateway-smart-homes/docview/3254483353/se-2?accountid=208611
Copyright
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2025-09-26
Database
ProQuest One Academic