The errors you are getting when the upload failed typically occur when the IDE can’t connect to the ESP-01. Some of the reasons this may happen are:
- ESP-01 is not powered on.
- ESP-01 is not connected to WiFi (wrong SSID/password, too far away from router) – Invalid SSL certificate or incorrectly installed Certificate Authority.
- Failure of the DNS system to map the hostname to an IP address.
- Connection is already in use (i.e. the DriverStation is connected to the ESP-01).