Sonoff Basic unresponsive after upgrade

I tried to upgrade one of my sonoff basic R2 with the latest esphome version using ota yesterday. The logs showed that the upload was complete but then device didn’t come online. The device looked fine but it didnt connect to wifi and the led was not turning on also. I thought it would have been an issue with update so I tried to flashing the firmware using my PC. But it seems my PC is also not able to connect to the device. I tried using esp flasher, tasmotizer and all but nothing worked. What could be the issue?