arduino-libraries / ArduinoHttpClient

Arduino HTTP Client library
288 stars 172 forks source link

minimal example for ESP32 #111

Closed ClemensGruber closed 3 years ago

ClemensGruber commented 3 years ago

Is there an minimal example for the ESP32? Or is https://github.com/espressif/arduino-esp32/blob/master/libraries/HTTPClient/src/HTTPClient.h an aquivalent to the ArduinoHttpClient lib?

I'd like to use the same http calls for an SIM800 module (via TTGO T-Call) and the genuine ESP32 WiFI function. So I'm searching for a lib that can handle both. I was able to make a connection via the SIM800 module and TinyGSM lib but struggle with the ESP32 implementation.

per1234 commented 3 years ago

Hi @ClemensGruber. Thanks for your interest in this open source project. There are no examples specifically for ESP32.

You are welcome to adapt the examples for ESP32 if you like. Or perhaps you will prefer to use the HTTPClient library that is installed along with the ESP32 boards platform. Its examples are found in the Arduino IDE at File > Examples > HTTPClient.

Feel free to post on the Arduino Forum if you have any questions: https://forum.arduino.cc/

UPDATE: forum post here