How to reduce MQTT data size
Posted: 15 Aug 2023, 20:58
Hi All
I have an ESP8266 running ESPEASY (ESP_Easy_mega_20230623_normal_ESP8266_4M1M) with an ADC measuring voltages of three batteries on my boat.
The values are transmitted every 15 minutes over an OpenHab MQTT controller using a Publish statement in rules.
The ESP8266 is connected to the Internet using a WiFi connection to a MiFi device with a standard PAYG SIM in it.
So, I am transmitting 3 x MQTT messages every 15 minutes ie 288 MQTT messages a day and, according to my ISP, I'm using about 2MB of data a day so each message is on average approx. 7KB
The ESP8266 is the only device connected to the MiFi router.
I was hoping to measure my IoT traffic in bytes not kilobytes so does anyone have any suggestions to reduce my data traffic without reducing the frequency of messages ?
Thanks
I have an ESP8266 running ESPEASY (ESP_Easy_mega_20230623_normal_ESP8266_4M1M) with an ADC measuring voltages of three batteries on my boat.
The values are transmitted every 15 minutes over an OpenHab MQTT controller using a Publish statement in rules.
The ESP8266 is connected to the Internet using a WiFi connection to a MiFi device with a standard PAYG SIM in it.
So, I am transmitting 3 x MQTT messages every 15 minutes ie 288 MQTT messages a day and, according to my ISP, I'm using about 2MB of data a day so each message is on average approx. 7KB
The ESP8266 is the only device connected to the MiFi router.
I was hoping to measure my IoT traffic in bytes not kilobytes so does anyone have any suggestions to reduce my data traffic without reducing the frequency of messages ?
Thanks