thunderace / Esp8266-Arduino-Makefile

Makefile to build arduino code for ESP8266/ESP32x under linux (tested on debian X64)
34 stars 20 forks source link

OTA Support #4

Closed Sembiance closed 8 years ago

Sembiance commented 8 years ago

In esp8266Arduino.mk you have hard coded your local IP in the 'OTA' target: $(ESPOTA) 192.168.1.184 8266 $(BUILD_OUT)/$(TARGET).bin

If you change that line to this: $(ESPOTA) -i $(OTA_IP) -p $(OTA_PORT) -a $(OTA_AUTH) -f $(BUILD_OUT)/$(TARGET).bin

Then anyone can use OTA simply by declaring the OTA_IP, OTA_PORT and OTA_AUTH variables in their own makefile. This is what I have done on my side and it works great!

Just wanted to also say THANK YOU for this project as I use it every day! Thanks!

thunderace commented 8 years ago

Done. Thank you.