COMMUNICATION ARCHITECTURES FOR CLOUD-INTEGRATED SPECTROMETRIC LABORATORIES: ESP-NOW VS MQTT
Abstract
Background. Cloud-integrated spectrometric laboratories face communication challenges in achieving real-time data access and analysis. This study compares two wireless protocols, MQTT (Message Queuing Telemetry Transport) and ESP-NOW (Espressif NOW), for LED control in such environments. MQTT offers lightweight, bandwidth-efficient, publish-subscribe messaging [1–3], while ESP-NOW provides energy-efficient direct communication without a Wi-Fi router. The objective is to evaluate their performance and suitability.
Materials and Methods. An experimental setup involved a StellarNet spectrometer, LED light sources, and ESP32 microcontrollers. Two architectures were tested: 1) direct MQTT Communication, where each ESP32 connected directly via Wi-Fi to an MQTT broker; and 2) an edge device with ESP-NOW relay, using an edge ESP32 for MQTT/Wi-Fi communication, then relaying commands via ESP-NOW to other ESP32s. Response times for LED control were measured over 100 cycles, and data were analyzed using descriptive statistics and an independent samples t-test.
Results and Discussion. Direct MQTT Communication exhibited significantly lower latency (median ~60 ms) and tighter distribution compared to the Edge Device with ESP-NOW Relay (median ~170 ms). A t-test confirmed a statistically significant difference (t=-46.28), with MQTT demonstrating faster response times. However, the ESP-NOW relay system offers architectural advantages: reduced Wi-Fi dependency for individual nodes, enhanced deployment flexibility in areas with poor Wi-Fi coverage, improved scalability [4], and energy efficiency, making its higher latency a practical trade-off for large-scale laboratory integration.
Conclusion. Direct MQTT Communication provides superior low-latency performance. However, the edge device with ESP-NOW relay, despite higher latency, is a highly acceptable solution due to its flexibility, scalability, and reduced Wi-Fi dependency
for distributed spectrometric laboratories. This highlights a critical trade-off between absolute speed and architectural benefits for robust, smart, cloud-enabled analytical laboratories.
Keywords: MQTT, ESP-NOW, spectrometric laboratory, Internet of Things, latency, embedded systems hardware
Full Text:
PDFReferences
[1] Domingues, M., Faria, J. N., & Portugal, D. (2024). Dimensioning payload size for fast retransmission of MQTT packets in the wake of network disconnections. EURASIP Journal on Wireless Communications and Networking, 2024(1). https://doi.org/10.1186/s13638-023-02327-3.
[2] Kamil, A. A., Mousa, A. J., & Abdul-Rahaim, L. A. (2024). Smart Cloud Computing System for Environment Based on MQTT Protocol and Node MCU (ESP8266). Journal Européen Des Systèmes Automatisés, 57(5), 1503. https://doi.org/10.18280/jesa.570526.
[3] Shah, P. H. (2024). MQTT Systems: A Survey. International Journal for Research in Applied Science and Engineering Technology, 12(3), 1063. https://doi.org/10.22214/ijraset.2024.59000.
[4] Puthiyidam, J.J., & Joseph, S. (2017). IoT Smart Home: Protocols and Architectures. International Journal for Research in Applied Science and Engineering Technology, 5, 2031. https://doi.org/10.22214/ijraset.2017.11293.
[5] Eisen, K., Eifert, T., Herwig, C., & Maiwald, M. (2020). Current and future requirements to industrial analytical infrastructure—part 1: process analytical laboratories. Analytical and Bioanalytical Chemistry, 412(9), 2027. https://doi.org/10.1007/s00216-020-02420-2.
[6] Arco, E., Boccardo, P., Gandino, F., Lingua, A. M., Noardo, F., & Rebaudengo, M. (2016). An Integrated Approach for Pollution Monitoring: Smart Acquirement and Smart Information. ISPRS Annals of the Photogrammetry, Remote Sensing and Spatial Information Sciences, 67. https://doi.org/10.5194/isprs-annals-iv-4-w1-67-2016.
[7] Gardiner, S., Haynie, C., & Corte, D. D. (2024). Rise of the Allotrope Simple Model: Update from 2023 Fall Allotrope Connect. Drug Discovery Today, 29(4), 103944. https://doi.org/10.1016/j.drudis.2024.103944.
[8] Dohare, R. K., Mainuddin, M., Verma, A., & Singhal, G. (2022). Uncertainty evaluation of data acquisition and analysis system relevant to infrared flowing medium laser. Scientific Reports, 12(1). https://doi.org/10.1038/s41598-022-22667-2.
[9] Munir, T., Akbar, M. S., Ahmed, S., Sarfraz, A., Sarfraz, Z., Sarfraz, M., Félix, M., & Chérrez-Ojeda, I. (2022). A Systematic Review of Internet of Things in Clinical Laboratories: Opportunities, Advantages, and Challenges. Sensors, 22(20), 8051. https://doi.org/10.3390/s22208051.
[10] Knight, N., Kanza, S., Cruickshank, D., Brocklesby, W. S., & Frey, J. G. (2020). Talk2Lab: The Smart Lab of the Future. IEEE Internet of Things Journal, 7(9), 8631. https://doi.org/10.1109/jiot.2020.2995323.
[11] Nguyen, H., Nguyen, L. V., & Ha, Q. P. (2020). IoT-enabled Dependable Co-located Low-cost Sensing for Construction Site Monitoring. Proceedings of the 37th ISARC, 616-624. https://doi.org/10.22260/isarc2020/0086.
[12] Wicaksono, M. F., & Rahmatya, M. D. (2022). IoT for Residential Monitoring Using ESP8266 and ESP-NOW Protocol. Jurnal Ilmiah Teknik Elektro Komputer Dan Informatika, 8(1), 93. https://doi.org/10.26555/jiteki.v8i1.23616.
[13] Rákay, R., Galajdová, A., Šeminský, J., & Cvitić, I. (2019). Seleceted Wireless Communication Protocols and their Properties for Use in IoT Systems. Research Papers Faculty of Materials Science and Technology Slovak University of Technology, 27(45), 26. https://doi.org/10.2478/rput-2019-0022.
[14] Alangcas, A., Marjhon, K., Daligdig, C., & Encarnacion, P. (2024). Embedded IoT Data Collection for Snore Analysis. International Journal of Advanced Trends in Computer Science and Engineering, 13(3), 119. https://doi.org/10.30534/ijatcse/2024/041332024.
[15] Babiuch, M., & Postulka, J. (2020). Smart Home Monitoring System Using ESP32 Microcontrollers. In Internet of things. Springer Science+Business Media. https://doi.org/10.5772/intechopen.94589.
[16] Le, L. H., Nguyen, D. T., Bui, H. P., Nguyen, C. C., & Ngo, T. Q. (2024). Integration of Modbus Ethernet Communication for Real-Time Electrical Power Consumption, Temperature, and Humidity Monitoring System. Research Square. https://doi.org/10.21203/rs.3.rs-4708973/v1.
[17] Van Anh, N. T., Anh, N. X. D., Son, L. H., & Khanh, D. Q. (2024, December). A New Architecture for Controlling IoT Devices of Smart Room Using ESP32 Microcontroller. In International Conference on Smart Objects and Technologies for Social Good (pp. 106-117). Cham: Springer Nature Switzerland. https://doi.org/10.1007/978-3-032-01472-6_9.
[18] Abid, A., Jazib, M., & Riaz, M. (2025). RCD-IoT: Enabling Industrial Monitoring and Control with Resource-Constrained Devices UnderHigh Packet Transmission Rates. arXiv (Cornell University). https://doi.org/10.48550/arxiv.2501.07895.
[19] Urazayev, D., Eduard, A., Ahsan, M., & Zorbas, D. (2023, May). Indoor performance evaluation of esp-now. In 2023 IEEE International Conference on Smart Information Systems and Technologies (SIST) (pp. 1-6). IEEE. https://doi.org/10.1109/sist58284.2023.10223585.
[20] Escobar, J. J. L., Redondo, R. P. D., & Gil‐Castiñeira, F. (2024). Unleashing the power of decentralized serverless IoT dataflow architecture for the Cloud-to-Edge Continuum: a performance comparison. Annals of Telecommunications, 79, 135–148. https://doi.org/10.1007/s12243-023-01009-x.
[21] Grawe, N. D., & Karaali, G. (2022). Talking about Statistical Significance in Numeracy. Numeracy, 15(2), 8. https://doi.org/10.5038/1936-4660.15.2.1424.
[22] Lalchand, V. (2020). A meta-algorithm for classification using random recursive treen ensembles: A high energy physics application. arXiv (Cornell University). https://doi.org/10.48550/arxiv.2001.06880.
[23] Maier, M., & Lakens, D. (2022). Justify Your Alpha: A Primer on Two Practical Approaches. Advances in Methods and Practices in Psychological Science, 5(2), 25152459221080396. https://doi.org/10.1177/25152459221080396.
[24] Araujo, A., García-Palacios, J., Blesa, J., Tirado, F., Romero, E., Samartín, A., & Nieto-Taladriz, O. (2011). Wireless Measurement System for Structural Health Monitoring with High Time-Synchronization Accuracy. IEEE Transactions on Instrumentation and Measurement, 61(3), 801-810. https://doi.org/10.1109/tim.2011.2170889.
DOI: http://dx.doi.org/10.30970/eli.33.4
Refbacks
- There are currently no refbacks.

Electronics and information technologies / Електроніка та інформаційні технології