ct-Open-Source / Basecamp

An Arduino library to ease the use of the ESP32 in IoT projects
GNU General Public License v3.0
254 stars 48 forks source link

MQTT-Guard about outgoing packets #43

Closed Dirk007 closed 6 years ago

Dirk007 commented 6 years ago

Added a MqttGuard Class and corresponding interface to Basecamp so anyone can check if all mqtt-packets have been sent easily before going to put the esp to deep sleep.

Does not break with old projects. For documentation, see added example and mqttGuardInterface.hpp

Old projects can be easily upgraded by doing the following modifications: