To jest stara wersja strony!
HTTP na ESP32
Import
#include <HTTPClient.h>
GET request
if(WiFi.status()== WL_CONNECTED) { String url = "https://sases.pl"; HTTPClient httpClient; // Utworzenie instancji httpClient.begin(url.c_str()); int httpResponseCode = httpClient.GET(); if (httpResponseCode > 0) { if (httpResponseCode == 200) { String payload = httpClient.getString(); // String z zawartością URL } } httpClient.end(); // Zniszczenie instancji i zwolnienie zasobów }