Add make httpflash command for commandline ota flashing

pull/30/head
Jeroen Domburg 8 years ago
parent d129c04e87
commit fbca81d76f
  1. 5
      Makefile.ota

@ -89,3 +89,8 @@ flash: $(TARGET_OUT) $(FW_BASE)
blankflash:
$(Q) $(ESPTOOL) $(ESPTOOL_OPTS) write_flash $(ESPTOOL_FLASHDEF) $(BLANKPOS) $(SDK_BASE)/bin/blank.bin $(INITDATAPOS) $(SDK_BASE)/bin/esp_init_data_default.bin
httpflash: $(FW_BASE)
$(Q) curl -X POST --data-binary '@build/httpd.ota' $(ESPIP)/flash/upload > /dev/null
$(Q) curl $(ESPIP)/flash/reboot
$(Q) echo -e '\nDone'

Loading…
Cancel
Save