Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How much data consumed on MQTT connection

Tags:

mqtt

I wonder how much data will be consumed (approximately) over say one month if I just connected to an MQTT server.(without sending or receiving any messages).

I need to calculate it to measure what data plan should I recharge for my sim card used in IoT application.

Thanks

like image 201
Mostafa Khattab Avatar asked Nov 03 '25 01:11

Mostafa Khattab


2 Answers

Edit: fix broken link as suggested by @Jacob

I hope that you can find your answers here:

MQTT data usage

By the way... The client sets the keep alive value when it sends a CONNECT request to the server (aka the broker). Potentially, if the client choose 0 as keep alive value, no data is consumed except for setup connection.

like image 166
Andrea Grossi Avatar answered Nov 04 '25 18:11

Andrea Grossi


Last time I had to do something similar I simulated the traffic of a month.

Because computers are much faster than IoT devices, just use any kind of high-level library to send the traffic the IoT devices would be sent in a month and then measure the TCP traffic.

like image 35
lilezek Avatar answered Nov 04 '25 20:11

lilezek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!