Comparison between MessagePack and JSON in LoRa MESH networks for physicochemical monitoring of drinking water
Comparison between MessagePack and JSON in LoRa MESH networks for physicochemical monitoring of drinking water
-
DOI: https://doi.org/10.22533/at.ed.317582501107
-
Palavras-chave: MessagePack; JSON; LoRa MESH; drinking water quality; IoT; physicochemical monitoring
-
Keywords: MessagePack; JSON; LoRa MESH; drinking water quality; IoT; physicochemical monitoring
-
Abstract: This article presents a comparative analysis between MessagePack and JSON data encoding formats for IoT LoRa MESH networks aimed at physicochemical monitoring of drinking water. A network composed of ESP32 LoRa nodes was implemented to collect real-time data from specific sensors measuring key parameters such as pH, total dissolved solids (TDS), oxidation-reduction potential (ORP), and temperature. Both formats were evaluated through controlled tests concerning packet size, transmission latency, energy consumption, and data reception efficiency. The results indicate that MessagePack considerably reduces packet size and significantly improves energy efficiency compared to JSON, while maintaining data integrity and reliability. The study concludes that MessagePack is more suitable for bandwidth and energy-critical IoT applications, such as water quality monitoring in rural or remote areas.
- Mario Alberto García Martínez
- Fernando Ríos Cortés
- Víctor Hugo Pérez Concha
- Fernando Vera Monterrosas