Commit Graph
2 Commits
Author SHA1 Message Date
Matous Hybl d224254d51 Improve send_message, recv_message API, add support for encoding last will, fix decoding of QOS (#24)
* recv_message now returns topic as well as data
* send_message accepts byte slice instead of &str
* Add last will encoding
* Fix QOS decoding
2022-09-26 10:37:17 +02:00
Matous Hybl 3ec92b2e81 Fix packet decoding for cases of dropped connection and decoding of ping responses (#22)
* Report network error when receiving packet with zero len

* Fix receiving packets with zero payload length
2022-09-13 10:06:27 +02:00