MQTT stops publishing

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?

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

aaaah yes!

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

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)

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

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