Based on the BasicOTA example from the ESP8266 Arduino library https://github.com/esp8266/Arduino/blob/master/libraries/ArduinoOTA/examples/BasicOTA/BasicOTA.ino
- Using Platfomio clone and import the project.
- Upload the sketch via serial
- Enter the local IP address of the ESP8266 as the
upload_port
inplatformio.ini
- The sketch will now upload via WiFi