Imroy / pubsubclient

A client library for the ESP8266 that provides support for MQTT
MIT License
434 stars 115 forks source link

does this Pubsubclient now support LWT? #5

Closed dogrocker closed 9 years ago

dogrocker commented 9 years ago

I didn't found Last Will Testament yet in the Pubsubclient API function.

So do you will add this function soon ?

Thanks.

Imroy commented 9 years ago

Use the set_will() method on a Connect object.

  client.connect(MQTT::Connect("ESP8266").set_will("status", "down"));

Should I put this in an example, or document the use of these objects and methods more? Or both?

dogrocker commented 9 years ago

Thanks @Imroy for fast response. Sorry for my mistake I just scan with lwt, last will key word.

I think it will be good for beginner if you can docs all api in readme.md.