Skip to content

Instantly share code, notes, and snippets.

@asus4
Last active March 12, 2020 07:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asus4/dbb4277a0d959ef2b50e6be959388e0c to your computer and use it in GitHub Desktop.
Save asus4/dbb4277a0d959ef2b50e6be959388e0c to your computer and use it in GitHub Desktop.
PlatformIO / OTA upload / ESP32 - arduiono
#!/bin/bash
set -e
espota=~/.platformio/packages/framework-arduinoespressif32/tools/espota.py
espip=YOUR_ESP_HOSTNAME.local
bin_file=.pioenvs/esp32dev/firmware.bin
# build and upload
platformio run -e esp32dev
$espota -i $espip -p 3232 -r -f $bin_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment