iotux / ElWiz

ElWiz - a program to read data from Tibber Pulse and similar devices
MIT License
109 stars 16 forks source link

MQTT Retain #2

Closed magnusoverli closed 2 years ago

magnusoverli commented 3 years ago

Hi!

Is it possible to set up retainment of the MQTT messages sent from ElWiz? This would come in very handy, in particular for data from list3 as those are only broadcast once every hour.

Best Magnus

iotux commented 3 years ago

You could probably set the retain flag on your MQTT broker configuration parameters if your broker supports it.  -------- Original message --------From: Magnus Øverli @.> Date: 9/26/21 15:12 (GMT+07:00) To: iotux/ElWiz @.> Cc: Subscribed @.***> Subject: [iotux/ElWiz] MQTT Retain (#2) Hi! Is it possible to set up retainment of the MQTT messages sent from ElWiz? This would come in very handy, in particular for data from list3 as those are only broadcast once every hour. Best Magnus

—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

magnusoverli commented 3 years ago

The broker needs to support the retain flag, and my broker (mosquitto) defaults to this support, but the retain flag needs to be published from the client. At least that is my understanding. If this is not currently supported, I suppose this is a feature request. :-)

iotux commented 2 years ago

This issue is resolved with the new update. New settings in the "config.yaml.sample" file takes this issue int account.

iotux commented 2 years ago

Hereby closed