tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
604 stars 188 forks source link

add last-will-and-testament to MQTT #434

Closed jmacwhyte closed 2 years ago

jmacwhyte commented 2 years ago

For some reason, the LWT settings in the MQTT options were not being included in the connect method, so I've added them. If you set a last will message, it will now be passed along when connecting to a broker.

deadprogram commented 2 years ago

Hello @jmacwhyte thank you for the code contribution.

I have switched the branch for the PR to dev as mentioned here: https://github.com/tinygo-org/drivers/blob/release/CONTRIBUTING.md#how-to-use-our-github-repository

deadprogram commented 2 years ago

Now merging, thanks again!

jmacwhyte commented 1 year ago

Great, thanks for catching that!

On Thu, 21 Jul 2022, 14:22 Ron Evans, @.***> wrote:

Hello @jmacwhyte https://github.com/jmacwhyte thank you for the code contribution.

I have switched the branch for the PR to dev as mentioned here: https://github.com/tinygo-org/drivers/blob/release/CONTRIBUTING.md#how-to-use-our-github-repository

— Reply to this email directly, view it on GitHub https://github.com/tinygo-org/drivers/pull/434#issuecomment-1191478945, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABISATKPQKRMT3AB65SO7F3VVFFHRANCNFSM54FI6XFQ . You are receiving this because you were mentioned.Message ID: @.***>