# MQTT stops publishing

**URL:** <https://community.victronenergy.com/t/mqtt-stops-publishing/26575>\
**Category:** Modifications\
**Tags:** mqtt, beginner, easysolar\_all-in-one, cerbo\_gx\
**Created:** [25 March 2025 19:49 UTC](https://community.victronenergy.com/t/mqtt-stops-publishing/26575 "2025-03-25T19:49:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikey](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/mikey/32/11906_2.png) [@Mikey](https://community.victronenergy.com/u/Mikey)\
**Post date:** [25 March 2025 19:49 UTC](https://community.victronenergy.com/t/mqtt-stops-publishing/26575/1 "2025-03-25T19:49:28Z")

</div>

When connecting to the mqtt server in my EasySolar II with MQTT Explorer, no values are posted on N/(serial)/#, but as soon as I go to the VRM Portal, and looks at the Dashboard for my installation, messages starts flowing.

It stays connected to the server, just no messages are send.

After closing VRM Portal, and waiting for about a minute, all messages again goes silent.

Is it supposed to be like that, and do I need to change something?

---

<div class="post-metadata">

**Author:** ![thomasinaz](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@thomasinaz](https://community.victronenergy.com/u/thomasinaz)\
**Post date:** [25 March 2025 22:37 UTC](https://community.victronenergy.com/t/mqtt-stops-publishing/26575/2 "2025-03-25T22:37:11Z")

</div>

You need to send a keepalive in order to keep the messages populating

---

<div class="post-metadata">

**Author:** ![Mikey](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/mikey/32/11906_2.png) [@Mikey](https://community.victronenergy.com/u/Mikey)\
**Post date:** [26 March 2025 04:35 UTC](https://community.victronenergy.com/t/mqtt-stops-publishing/26575/3 "2025-03-26T04:35:30Z")

</div>

aaaah yes!

After adding “keepalive” to my google search the results returned were much more helpful. 🙂

---

<div class="post-metadata">

**Author:** ![dognose](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/dognose/32/968_2.png) [@dognose](https://community.victronenergy.com/u/dognose)\
**Post date:** [27 March 2025 07:01 UTC](https://community.victronenergy.com/t/mqtt-stops-publishing/26575/4 "2025-03-27T07:01:41Z")

</div>

Just check the keepalive topic while vrm is open, you can copy/paste that payload.

Mind to add the option to supress republish, else you are causing a full publish of every value with every keep alive.

`R/xxxxx/keepalive { “keepalive-options” : [“suppress-republish”] }`

(You probably only want a republish after connecting your client for the first time)

---

<div class="post-metadata">

**Author:** ![Mikey](https://dub1.discourse-cdn.com/victron/user_avatar/community.victronenergy.com/mikey/32/11906_2.png) [@Mikey](https://community.victronenergy.com/u/Mikey)\
**Post date:** [27 March 2025 07:49 UTC](https://community.victronenergy.com/t/mqtt-stops-publishing/26575/5 "2025-03-27T07:49:12Z")

</div>

Good call, I now added so it will send a random keepalive message after connecting, then the supress-republish message afterwards.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/victron/original/1X/21a9a7b5db7c6339715f993568736a7053199995.png) [@system](https://community.victronenergy.com/u/system)\
**Post date:** [10 April 2025 07:49 UTC](https://community.victronenergy.com/t/mqtt-stops-publishing/26575/6 "2025-04-10T07:49:14Z")

</div>

Closed on 10 April 2025 07:49 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
