I can't figure out how to upload sketches to my ESP12-e via the Arduino Mega. I don't have a separate TTL-to-USB controller.
I was able to connect to the ESP via Serial2, send AT commands and receive answers in the serial monitor, however I want to use the ESP without an Arduino, i.e. I have to upload sketches directly to it. I know that for using the AduinoUNO as TTL-to-USB controller you have to connect Reset to GND, so I did this with the Mega as well.
My questions: 1. Generally is it possible to use the solely the Mega + Arduino IDE? 2. Is it important which Serial I use? (So far I tried Serial2 and Serial) 3. If I want to upload I usually have to select the COM port. Do I select ArduinoMega in this case? (I don't see anything else anyway...)
The sketch I want to upload is the ArduinoOTA from github so that later I can upload sketches via Wifi.