Skip to content

Commit a9bdeb3

Browse files
committed
use proper HTTPClient object for ESP32
1 parent 126f8d0 commit a9bdeb3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/AdafruitIO.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ class AdafruitIO {
148148
Adafruit IO, in milliseconds */
149149

150150
Adafruit_MQTT *_mqtt; /*!< Reference to Adafruit_MQTT, _mqtt. */
151-
HttpClient *_http; /*!< Reference to HTTPClient, _http */
151+
#if defined ARDUINO_ARCH_ESP32
152+
HTTPClient *_http; /*!< Reference to ESP32 HTTPClient, _http */
153+
#else
154+
HttpClient *_http; /*!< Reference to HTTPClient, _http */
155+
#endif
152156

153157
char _version[10]; /*!< Adafruit IO Arduino library version */
154158

0 commit comments

Comments
 (0)