The code for HttpClient on the ESP32 and ESP8266 is similar but not exactly the same, as the libraries and methods used on the two boards are slightly different.
The main difference between the two codes is the library being used. The ESP32 code uses the WiFi.h and HTTPClient.h libraries, while the ESP8266 code uses the ESP8266WiFi.h and ESP8266HTTPClient.h libraries.
1 Like
Yes, if you use the ESP32 example I linked to, not the ESP8266 one.
Youâll need to install the ESP32 core, if you havenât installed it already.
If you donât want to use Edgent then you can simplify the sketch and still use the function from this sketch to send your data.
Pete.
Thank you, I will buy esp32 and I will try that code. thank you