MQTT: How many times per minute MQTT client polls the server?

pedro.olimpio

How many times per minute does the MQTT client poll the server? Is it a big data traffic or not? I know the size of the packet can be small, but how many times the client ping the broker to make itself "online" in the broker.

If I was not clear please comment this question and I'll try explain better my doubt.

My broker is Mosquitto and the clients are small device (sensors and etc.)

ralight

Assuming no data flow (which is of course application dependent), the client will periodically send a PINGREQ message to the broker. This is a 2 byte message and the broker replies with a PINGRESP, also 2 bytes.

The rate at which PINGREQ is sent depends on the keepalive parameter set when you connect. This tells the broker the interval at which it should expect at least one message from the client. In the absence of any other message, the client sends a PINGREQ.

60 seconds is often used as a default value (whether or not this is appropriate for you depends on how quickly you want the client/broker to respond to a hung connection). In the absence of any other messages flowing, maintaining the keepalive guarantee would mean 4 bytes total transferred every minute. This is only the application level data of course, the length of the data on the wire will be bigger.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to connect from MQTT javascript client to Mosquitto Server?

From Dev

MQTT broker communication to MQTT Client

From Java

How to get the name of a client in HiveMQ Client (MQTT)?

From Dev

Determining how many subtopics are inside of an MQTT topic

From Dev

How to receive multiple messages in HiveMQ Client? (MQTT)

From Java

How to print all topics in HiveMQ Client? (MQTT)

From Dev

How to publish a message to a specific client in Mosquitto MQTT

From Dev

How to Find Connected MQTT Client Details

From Dev

How to Subscribe a Bash Script as a MQTT Client

From Dev

How to start using MQTT Paho JavaScript client?

From Dev

How to use client id in Mosquitto MQTT?

From Dev

MQTT How to Create Client from Clientside?

From Dev

How to use paho mqtt client in django?

From Dev

How to use a self signed certificate to connect to a Mqtt server in Android (paho client)?

From Dev

How does a MQTT server send a message to a client saying that its not authorized to connect?

From Dev

Load balancing MQTT Client

From Dev

MQTT C++ client

From

MQTT existing client

From Dev

MQTT Client testing with junit

From Dev

MQTT Client keeps on diconnecting

From Dev

mqtt client in html page

From Dev

MQTT know if a client is subscribed

From Dev

MQTT Android Mosquitto client

From Java

How to implement MQTT server using Spring Integration?

From Dev

Authenticating MQTT client on the MQTT server by username and password in C# asp.net core 2.1

From Dev

MqttNet - MQTT Client cannot receive all the messages that were published by an MQTT Server

From Dev

Mqtt How a client can get to know that another client is connected or not

From Dev

How many document reads per minute is too many in Firestore?

From Dev

Rebooting server with MQTT service

Related Related

  1. 1

    How to connect from MQTT javascript client to Mosquitto Server?

  2. 2

    MQTT broker communication to MQTT Client

  3. 3

    How to get the name of a client in HiveMQ Client (MQTT)?

  4. 4

    Determining how many subtopics are inside of an MQTT topic

  5. 5

    How to receive multiple messages in HiveMQ Client? (MQTT)

  6. 6

    How to print all topics in HiveMQ Client? (MQTT)

  7. 7

    How to publish a message to a specific client in Mosquitto MQTT

  8. 8

    How to Find Connected MQTT Client Details

  9. 9

    How to Subscribe a Bash Script as a MQTT Client

  10. 10

    How to start using MQTT Paho JavaScript client?

  11. 11

    How to use client id in Mosquitto MQTT?

  12. 12

    MQTT How to Create Client from Clientside?

  13. 13

    How to use paho mqtt client in django?

  14. 14

    How to use a self signed certificate to connect to a Mqtt server in Android (paho client)?

  15. 15

    How does a MQTT server send a message to a client saying that its not authorized to connect?

  16. 16

    Load balancing MQTT Client

  17. 17

    MQTT C++ client

  18. 18

    MQTT existing client

  19. 19

    MQTT Client testing with junit

  20. 20

    MQTT Client keeps on diconnecting

  21. 21

    mqtt client in html page

  22. 22

    MQTT know if a client is subscribed

  23. 23

    MQTT Android Mosquitto client

  24. 24

    How to implement MQTT server using Spring Integration?

  25. 25

    Authenticating MQTT client on the MQTT server by username and password in C# asp.net core 2.1

  26. 26

    MqttNet - MQTT Client cannot receive all the messages that were published by an MQTT Server

  27. 27

    Mqtt How a client can get to know that another client is connected or not

  28. 28

    How many document reads per minute is too many in Firestore?

  29. 29

    Rebooting server with MQTT service

HotTag

Archive