Since esp32 and esp8266 differ at the hardware level code that works for one can easily not work for the other especially since much esp8266 coding was done before esp32 was in production.
Since esp32 and esp8266 differ at the hardware level code that works for one can easily not work for the other especially since much esp8266 coding was done before esp32 was in production.