Maybe the issue was on your router, it reject some devices when this router has no internet connection and having hard time to reconnect, please try to reboot/restart the wifi router.