Installation¶
Requirements¶
Before installing, make sure your environment meets the following requirements:
| Requirement | Details |
|---|---|
| Board | ESP32 (any variant: ESP32-S2, S3, C3, etc.) |
| IDE / Core | Arduino IDE 1.8.x/2.x or PlatformIO |
| ESP32 Arduino Core | v2.x or later |
| Dependencies | None β no external libraries required |
Method 1: Arduino Library Manager (Recommended)¶
- Open the Arduino IDE.
- Go to Sketch β Include Library β Manage Libraries....
- Search for
ESP32-HTTP-Client. - Click Install on the result by
Pedro Fonseca.
Method 2: PlatformIO¶
Add ESP32-HTTP-Client to the lib_deps section of your platformio.ini project configuration file:
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
PedroFnseca/ESP32-HTTP-Client@^1.4.0
Alternatively, install it via PlatformIO CLI:
Method 3: Manual Installation¶
- Download the latest release ZIP from GitHub.
- In the Arduino IDE, go to Sketch β Include Library β Add .ZIP Library....
- Select the downloaded ZIP file.
Alternatively, extract it directly into your Arduino/libraries/ folder:
Arduino/
βββ libraries/
βββ ESP32-HTTP-Client/
βββ src/
β βββ ESP32HTTPClient.h
β βββ ESP32HTTPClient.cpp
β βββ RestRequest.h
β βββ RestRequest.cpp
β βββ RestTypes.h
β βββ BufferedStreamReader.h
βββ examples/
βββ library.properties
βββ ...
Verify Installation¶
After installing, verify by loading one of the built-in examples:
File β Examples β ESP32-HTTP-Client β RestCrud
Upload it to your ESP32 (with your WiFi credentials filled in) and open the Serial Monitor at 115200 baud.