question

elea avatar image
elea asked

Does Venus OS demo on RPi MQTT broker work ?

Hello all,

I installed Venus OS 2.66 on a rasp3b. I set the demo mode (eg. boat) and the MQTT services on. I tried to get Mqtt payload via a mosquitto_sub command from my pc but got nothing. So, to be sure can somebody confirm whether demo modes actually simulate the MQTT broker ?

many thanks for the reply

Venus OS
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
elea avatar image
elea answered ·

Just to say that it works, the keep-alive is the point. I added --keep-alive 0 in /service/dbus-mqtt/run file

this is very convenient for preparing dashboards when away from the system (currently not onboard of the boat)

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

elvis avatar image elvis commented ·

@Elea

You added --keep-alive 0 to what exactly?

Is it an argument to the end of the command in that file?

on a line by itself?


Thanks :-)


0 Likes 0 ·
gone-sailing avatar image
gone-sailing answered ·

MQTT does work in demo mode on the v2.84 OS I am running. Why are you still running 2.66? If you are going to using MQTT I strongly recommend you read the dbus-Mqtt page, in particular the sections on read requests and keep alive.

https://github.com/victronenergy/dbus-mqtt

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources