1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-24 08:45:10 +03:00

More explanations about OTA uploading

This commit is contained in:
Ivan Kravets 2015-12-15 20:45:40 +02:00
parent 3940b35491
commit 7e1a04a41b

View File

@ -28,6 +28,8 @@ platformio boards espressif
# Initialise base project # Initialise base project
# #
platformio init --board %TYPE%(see above) 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 # The next files/directories will be created in myproject
# platformio.ini - Project Configuration File. |-> PLEASE EDIT ME <-| # 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 - Place your source code to `src` directory
- Build/Upload project - Build/Upload project
``` ```bash
# process/build project # process/build project
platformio run platformio run
# build+upload firmware # build+upload firmware
platformio run --target upload 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 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 ## 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 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