Skip to content

Commit 20eaa0e

Browse files
committed
remove HTTPClient for esp32
1 parent a9bdeb3 commit 20eaa0e

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ paragraph=Arduino library to access Adafruit IO using the Adafruit AirLift, ESP8
77
category=Communication
88
url=https://github.com/adafruit/Adafruit_IO_Arduino
99
architectures=*
10-
depends=Adafruit MQTT Library, ArduinoHttpClient, HTTPClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo
10+
depends=Adafruit MQTT Library, ArduinoHttpClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo

src/AdafruitIO.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@
2424
#include "AdafruitIO_Time.h"
2525
#include "Adafruit_MQTT.h"
2626
#include "Arduino.h"
27-
#if defined ARDUINO_ARCH_ESP32
28-
// use HTTP Client for ESP32
29-
#include "HTTPClient.h"
30-
#else
31-
// use generic HTTP client for Arduino
3227
#include "ArduinoHttpClient.h"
33-
#endif
3428
#include "util/AdafruitIO_Board.h"
3529

3630
#ifndef ADAFRUIT_MQTT_VERSION_MAJOR
@@ -148,11 +142,7 @@ class AdafruitIO {
148142
Adafruit IO, in milliseconds */
149143

150144
Adafruit_MQTT *_mqtt; /*!< Reference to Adafruit_MQTT, _mqtt. */
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
145+
HttpClient *_http; /*!< Reference to HTTPClient, _http */
156146

157147
char _version[10]; /*!< Adafruit IO Arduino library version */
158148

0 commit comments

Comments
 (0)