Katman MQTT Client
Loading account

What Does an MQTT Publish Interval Actually Mean?

Understand how cyclic publishing works in the Katman MQTT client, why sends can drift, and when to use it for a small repeatable test.

By Katman

You select Every 5 seconds and start publishing. Does that mean a message leaves at exactly five-second intervals, regardless of what the broker is doing?

In the Katman MQTT client, the next cyclic send waits for the previous publish to finish, then waits the selected interval. That small distinction matters when you interpret a capture or repeat a test against a busy broker.

One interval, one send at a time

Katman sends the first message when you start the cycle. Subsequent sends follow this sequence:

Publish → publish completes → wait selected interval → publish again

If a publish takes longer to complete, the following send moves later too. The cycle does not start overlapping publishes to catch up with a clock. Use it to repeat a message; don't treat it as a precise-rate load generator.

Try a small status check

In PUBLISH, create a template for a harmless command your test device understands. For example:

{"command":"get_status"}

Set its concrete topic, choose Every 5 seconds, leave retain off, and start the cycle. Watch the sent count and the incoming traffic. Stop the card with STOP CYCLE when you have enough observations.

The payload above is illustrative: your device must implement that command and its reply. A completed publish is not proof that the device has answered. The Publish Templates guide covers the card fields; use Request / Response when you need to follow application replies separately.

Read the result in context

Compare when messages arrived, rather than assuming the interval alone describes the whole exchange. If you need a file afterward, start topic logging before the test.

A publish error stops the cycle. Correct the connection or message problem before starting it again. Saved templates remain available, but a running cycle does not automatically resume when you reopen Katman.