mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-22 21:23:07 +03:00
More explanations about OTA uploading
This commit is contained in:
parent
3940b35491
commit
7e1a04a41b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user