getting status/LWT "connection lost" and last data value

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kenkoknz
Normal user
Posts: 64
Joined: 03 Jul 2018, 23:46
Location: New Zealand

getting status/LWT "connection lost" and last data value

#1 Post by kenkoknz » 06 Nov 2018, 02:23

Hi,
On one of the esp01, I am now getting status/LWT "connection lost" and also the last data value even after I have switch off the esp when I subscribe to /%sysname%/#
I take it has something to do with QOS, LWT and retained messages. How do I clear the LWT retained message, ie the last data value? and what is the QOS with espeasy. ESP version mega-20180723 using public mqtt broker hivemq.
Thanks,
Ken

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: getting status/LWT "connection lost" and last data value

#2 Post by grovkillen » 06 Nov 2018, 05:56

One way to remove retained values is to send a new message, with no retain flag, to that same topic. But I find it easier to use a client software to do it instead of using the ESP. I recommend MQTT Snooper: https://play.google.com/store/apps/deta ... qttsnooper
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests