We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a4519f commit d873588Copy full SHA for d873588
src/AdafruitIO_AIRLIFT.h
@@ -29,7 +29,6 @@
29
#define ESP32_GPIO0 -1 // Not connected
30
#endif
31
32
-// br: try to emulate everything in the header to avoid wifinina-wifi101 conflicts
33
class AdafruitIO_AIRLIFT : public AdafruitIO {
34
35
public:
@@ -43,7 +42,17 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
43
42
_http = new HttpClient(*_http_client, _host, _http_port);
44
}
45
46
- //~AdafruitIO_AIRLIFT();
+ ~AdafruitIO_AIRLIFT()
+ {
47
+ if (_mqtt_client)
48
+ delete _http_client;
49
+ if (_http_client)
50
+ delete _mqtt_client;
51
+ if (_mqtt)
52
+ delete _mqtt;
53
+ if (_http)
54
+ delete _http;
55
+ }
56
57
aio_status_t networkStatus()
58
{
0 commit comments