From 7e1a04a41b1b4fa94f59a463391685ac00840f98 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 15 Dec 2015 20:45:40 +0200 Subject: [PATCH] More explanations about OTA uploading --- doc/platformio.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/doc/platformio.md b/doc/platformio.md index a03500bb3..b086c1313 100644 --- a/doc/platformio.md +++ b/doc/platformio.md @@ -28,6 +28,8 @@ platformio boards espressif # Initialise base project # platformio init --board %TYPE%(see above) +# for example, initialise project for ESP8266 ESP-12E board (NodeMCU) +platformio init --board esp12e # The next files/directories will be created in myproject # platformio.ini - Project Configuration File. |-> PLEASE EDIT ME <-| @@ -39,16 +41,28 @@ platformio init --board %TYPE%(see above) - Place your source code to `src` directory - Build/Upload project -``` +```bash # process/build project platformio run # build+upload firmware platformio run --target upload +``` -# build+upload firmware via OTA +## OTA firmware uploading + +There are 2 options: + +1. Directly specify `--upoad-port` in command line +```bash platformio run --target upload --upload-port IP_ADDRESS_HERE ``` +2. Specify [upload_port](http://docs.platformio.org/en/latest/projectconf.html#upload-port) option in `platformio.ini` +```ini +[env:***] +... +upload_port = IP_ADDRESS_HERE +``` ## IDE Integration In addition, PlatformIO [can be integrated into the popular IDEs](http://docs.platformio.org/en/latest/ide.html). For example, initialise project for Espressif ESP8266 ESP-01 board and Eclipse IDE