WEMOS D1 Mini Pro : AVRISP WiFi programmer

(deleted)

My guess is that the sketch you loaded onto the ESP8266 doesn't support all necessary functions. As you failed to provide the relevant sketch code this is wild guessing.

(deleted)

Post a complete wiring diagram and the sketch you load onto the ESP.