ESP-32 vs ESP8266

By accident I bought the Feather ESP32 instead of the Feather ESP8266.
And now I think that I will need to make quite a few changes to the sketch, which I inherited.
Firstly, I am reading that I will need to replace as follows:
Wifi.h for ESP8266Wifi.h
WebServer.h for ESP8266WebServer.h
DNSServer-ESP32.h for DNSServer.h

I might have something wrong with them but you get the idea, plus there might be (probably are) more.
I might go ahead and bite the bullet if the chip is significantly better but I am thinking no.

Has anyone else gone through this exercise, and was it worth it ?

I am holding my breath and thanking you.

hextejas:
By accident I bought the Feather ESP32 instead of the Feather ESP8266.
And now I think that I will need to make quite a few changes to the sketch, which I inherited.
Firstly, I am reading that I will need to replace as follows:
Wifi.h for ESP8266Wifi.h
WebServer.h for ESP8266WebServer.h
DNSServer-ESP32.h for DNSServer.h

I might have something wrong with them but you get the idea, plus there might be (probably are) more.
I might go ahead and bite the bullet if the chip is significantly better but I am thinking no.

Has anyone else gone through this exercise, and was it worth it ?

I am holding my breath and thanking you.

The ESP32 is way morepowerful than the ESP8266. First of all it runs on faster speed, and it has more IO pins than the ESP8266. You just have to edit some code and functions, and you are good to go.

.. Arnav