Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Lee asked an AI the following
for an MQTT broker connection what does true do in this command: client.connect(BROKER_URL, clientId, true); // BROKER_URL, name, Clean session
The AI reported:
In your MQTT connection command, is the Clean Session flag. [1]
Setting it to tells the broker to create a non-persistent session. Here is exactly what this means in practice:
• No Message Queuing: If your device disconnects (due to a network drop or power loss), the broker will discard all incoming messages and subscriptions meant for your device.
• Fresh Start: When your client reconnects, it will start with a completely clean slate. It will have to re-subscribe to all of its topics.
• When to use it: It is ideal for sensors or devices that only care about real-time data and do not need to retrieve messages that were sent while they were offline. [1, 2, 3, 4]
Contrast with :If you set it to , you establish a persistent session. The broker will remember your subscriptions and hold onto undelivered messages (Quality of Service 1 and 2) while your device is offline, delivering them immediately when you reconnect. [1, 2]
For a deeper dive into how this affects message delivery, check out the HiveMQ Clean Sessions Guide.
AI responses may include mistakes.
[1] https://docs.n3uron.com/docs/mqtt-client-configuration
[2] https://www.hivemq.com/blog/mqtt-essentials-part-7-persistent-session-queuing-messages/
[3] http://www.steves-internet-guide.com/mqtt-clean-sessions-example/
[4] https://thingsboard.io/docs/mqtt-broker/user-guide/clean-persistent-sessions/
Describe the solution you'd like
A clear and concise description of what you want to happen.
For Krake we need to test and choose if the connection is persistent.
Worst Case we make a user interface choice for the use case of end users. The Developer manual will need to educate the developer on how to chose persistent connection or not.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Lee asked an AI the following
The AI reported:
Describe the solution you'd like
A clear and concise description of what you want to happen.
For Krake we need to test and choose if the connection is persistent.
Worst Case we make a user interface choice for the use case of end users. The Developer manual will need to educate the developer on how to chose persistent connection or not.