16.05.2020, 16:16
Hi Erwin
QOS is handled automatically in lib.
You can set 'Last will' like this
client:will_set(topic, message, qos = 0, retain = false)
So in example script it will looks like that.
mclient:will_set('in/topic2', 'disconnected', 0, true)
Add this after line
mclient:login_set(username, password or '')
QOS is handled automatically in lib.
You can set 'Last will' like this
client:will_set(topic, message, qos = 0, retain = false)
So in example script it will looks like that.
mclient:will_set('in/topic2', 'disconnected', 0, true)
Add this after line
mclient:login_set(username, password or '')
------------------------------
Ctrl+F5
Ctrl+F5