- setup the ESP8266 as an access point(AP).
- Create a server on the PC (using python or whatever) that responds to any request by sending the hex file contents to be programmed as a string
- Put the PC server on the ESP8266 AP LAN.
- the ESP8266 acts as a client and sends a request to the PC server
- The PC server replies by sending the hex file contents to the ESP8266 as a string
- Once the ESP8266 has the hex file contents it then uses the stk500 protocol to program the Arduino attached to the ESP8266 via the serial port (tricky part).
https://github.com/jeelabs/esp-link/tree/master