Open drmattoclarkson opened 3 years ago
Hi
I share the same issue, where onPublish callback is further needed for qos levels 1 and 2, however, to checkout the author's opinion, here's a link to the documentation at the time he did remove it: https://github.com/philbowles/PangolinMQTT/blob/ff68b5ff114d35c5b873da02e9761f91fafda15f/docs/api.md#specific-problems--fixes
I think you can do the following:
It's solved in my fork of H4AsyncMQTT, you receive the PacketID for QoS>0 publishes at ::publish(), and receive the ACK'd PacketID onPublish() callback function.
I have some code that publishes some messages then puts the esp8266 to sleep - how can I tell that all messages have been sent and it's safe to sleep?