ESP32 vs ESP8266 server differences
Posted: Sat Jul 09, 2022 7:56 am
Hello,
I try to port an Arduino code form ESP8266 to ESP32 ( Wifi Kit 32)
I changed the relavant server includes form
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
to
#include <WiFi.h>
#include <HTTPClient.h>
#include <WiFiClient.h>
#include <WebServer.h>
but it does not work. The ESP32 is connected to the Wifi but the server doesn't run. Is there anything what I need further to consider/change. Thanks for any hint
Klaus
I try to port an Arduino code form ESP8266 to ESP32 ( Wifi Kit 32)
I changed the relavant server includes form
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
to
#include <WiFi.h>
#include <HTTPClient.h>
#include <WiFiClient.h>
#include <WebServer.h>
but it does not work. The ESP32 is connected to the Wifi but the server doesn't run. Is there anything what I need further to consider/change. Thanks for any hint
Klaus