-
Go to your Arduino sketch:
cd path-to-your-sketch
-
Clone this repository
git clone https://github.com/neomilium/esp8266-arduino.mk.git
Note: if you are already in a Git repository, you could use it as submodule:
git submodule add https://github.com/neomilium/esp8266-arduino.mk.git
-
Copy minimal makefile
cp esp8266-arduino.mk/Makefile.sample Makefile
-
(Re)Build your sketch
make
-
Upload using serial
make upload
-
Upload using OTA
make upload-ota
Note: this requires you set the target's IP in
IP
variable (e.g. inMakefile
)