Characterization of Latency Sources in a MicroPython-Based ESP32 Edge–Cloud Sensor Network

This paper presents the design and experimental characterization of a distributed ESP32/MicroPython edge–cloud sensing system with packet-level latency decomposition. Sensor nodes transmit periodic telemetry to an ESP32 gateway over ESP-NOW; the gateway appends reception and MQTT-publication timestamps and forwards records through a local Mosquitto bridge v2.1.2, EMQX Cloud v5, Telegraf v1.36.0, and InfluxDB Cloud Serverless (Storage Engine Version 3). A three-probe two-way gateway-referenced synchronization procedure provides corrected sender timestamps while exposing an interval-based synchronization-uncertainty diagnostic. The bridge-assisted campaign comprised three independent 30 min repetitions with one, three, and five active nodes. Across runs, mean gateway-referenced node-to-gateway latency was 23.17 ± 0.13 ms, 24.13 ± 0.12 ms, and 24.84 ± 0.47 ms, respectively; the corresponding p95 values were 28 ms, 33 ms, and 37–38 ms. Mean gateway-processing latency remained nearly unchanged at 13.31–13.46 ms. Exact full-run database-visible PDR was 100% in all one-node runs, 99.28–99.88% in the three-node runs, and 96.75–97.05% in the five-node runs. Independent GPIO/oscilloscope validation showed a reproducible positive software-to-hardware difference of 12.132 ± 1.819 ms across run means, so the local metric is interpreted as a gateway-referenced application-level delivery metric rather than unbiased physical one-way radio latency. Relative to aggregate end-to-end reporting, the instrumentation separates local, gateway, and downstream ingestion contributions rather than claiming a universally faster transport method. Quantitative performance and scaling claims are confined to the evaluated bridge-assisted configuration and controlled indoor periodic workload.

Authors

Institutions

Publication Details

Journal
Sensors
Published
2026-09-01
DOI
https://doi.org/10.3390/s26175555
Primary Topic
IoT and Edge/Fog Computing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Characterization of Latency Sources in a MicroPython-Based ESP32 Edge–Cloud Sensor Network

Katarzyna Smelcerz
Sensors
IoT and Edge/Fog Computing
article

Characterization of Latency Sources in a MicroPython-Based ESP32 Edge–Cloud Sensor Network

Katarzyna Smelcerz
article en

Abstract

This paper presents the design and experimental characterization of a distributed ESP32/MicroPython edge–cloud sensing system with packet-level latency decomposition. Sensor nodes transmit periodic telemetry to an ESP32 gateway over ESP-NOW; the gateway appends reception and MQTT-publication timestamps and forwards records through a local Mosquitto bridge v2.1.2, EMQX Cloud v5, Telegraf v1.36.0, and InfluxDB Cloud Serverless (Storage Engine Version 3). A three-probe two-way gateway-referenced synchronization procedure provides corrected sender timestamps while exposing an interval-based synchronization-uncertainty diagnostic. The bridge-assisted campaign comprised three independent 30 min repetitions with one, three, and five active nodes. Across runs, mean gateway-referenced node-to-gateway latency was 23.17 ± 0.13 ms, 24.13 ± 0.12 ms, and 24.84 ± 0.47 ms, respectively; the corresponding p95 values were 28 ms, 33 ms, and 37–38 ms. Mean gateway-processing latency remained nearly unchanged at 13.31–13.46 ms. Exact full-run database-visible PDR was 100% in all one-node runs, 99.28–99.88% in the three-node runs, and 96.75–97.05% in the five-node runs. Independent GPIO/oscilloscope validation showed a reproducible positive software-to-hardware difference of 12.132 ± 1.819 ms across run means, so the local metric is interpreted as a gateway-referenced application-level delivery metric rather than unbiased physical one-way radio latency. Relative to aggregate end-to-end reporting, the instrumentation separates local, gateway, and downstream ingestion contributions rather than claiming a universally faster transport method. Quantitative performance and scaling claims are confined to the evaluated bridge-assisted configuration and controlled indoor periodic workload.

SensorsVol. 26(17)
Jagiellonian University (PL), AGH University of Krakow (PL)
Openalex Percentile: Top 8%
IoT and Edge/Fog Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.