2 x devices - issue with data stream

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