You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Technical Question] Issue with idle data consumption. #1201
OS info: Raspbian GNU/Linux 11 (bullseye)
Python version: Python 3.9.2
pip version: pip 20.3.4
version taken from requirements.txt: azure-iot-device==2.12.0
Description
In our product we use the azure-iot-device and recently we've been selling our product with a sim card and with this we have a need to reduce our data consumption to a minimum.
We experimented with a whole lot of different configurations that the library allows us like for example changing if the connection uses websockets or not among other things and, regardless of what we do, there is a daily consumption of around 3mb. It seems like a lot. We have analyzed the traffic and there's a packet that is sent every 10 seconds and another different kind that is sent every 30 seconds. We haven't been able to change anything in the library to modify this behavior. Here are some screenshots of our analyzed traffic.
So is there a way we can reduce this data consumption? Is there a solution to this? Any help would be appreciated.
lukev2c my apologies for a very long delay in reply. You can try providing a longer keep_alive value to reduce traffic. The MQTT client has to ping the server to keep a connection alive, and the interval is the "keep alive".
Activity
cartertinney commentedon Jan 17, 2026
lukev2c my apologies for a very long delay in reply. You can try providing a longer
keep_alivevalue to reduce traffic. The MQTT client has to ping the server to keep a connection alive, and the interval is the "keep alive".