jalmeroth / homie-python

A Python-implementation of the homie v2 convention.
https://github.com/marvinroger/homie
54 stars 15 forks source link

Publish retained messages with QOS != 0 #40

Closed bodiroga closed 6 years ago

bodiroga commented 6 years ago

It seems that the MQTT 3.1.1 specification doesn't force brokers to store retained messages sent with QOS = 0. Here you can find a conversation about that in the Moquette broker GitHub repository: https://github.com/andsel/moquette/issues/125.

I propose to publish all messages with QOS = 1, because that is also what Homie recommends (https://github.com/homieiot/convention#qos-and-retained-messages).

PS: I will try to provide a PR for it :+1:

bodiroga commented 6 years ago

Implemented in the last PR (#42), closing it!