If you don’t set your 2.4 GHz wifi network to Legacy mode, you can expect nothing but problems and unreliability from your ESP8266 and ESP32 devices. They will drop, fail to reconnect, reconnect briefly, then drop all over again. Something about Asus routers’ 2.4GHz N wifi mode simply does not agree with Arduino wifi firmware.