-
Hello, is it possible to have a SetOption??? for the MQTT_CLEAN_SESSION flag. I have some (not permanent powered) devices, they need also messages if they are not online. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
From my understanding (but I may be wrong), in order for this to work QoS = 1 must be used on both sender and receiver. At least this is what the table at the end of this article suggest: http://www.steves-internet-guide.com/mqtt-clean-sessions-example/ |
Beta Was this translation helpful? Give feedback.
-
Hello, sure, it needs a little effort to make it working. Tasmota doesn't set a subscription for the qos1 queue automatically. I must do it manually in the broker(I use rabbitmq). But after them, it is working. |
Beta Was this translation helpful? Give feedback.
From my understanding (but I may be wrong), in order for this to work QoS = 1 must be used on both sender and receiver.
As Tasmota's PubSubClient library only support QoS=0, I fear that Tasmota will not receive messages even if persistent session (cleanSesstion = false) was used.
At least this is what the table at the end of this article suggest: http://www.steves-internet-guide.com/mqtt-clean-sessions-example/