Skip to content

Commit 94fd033

Browse files
committed
Add authentication and upload options
1 parent 7e1a04a commit 94fd033

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

doc/platformio.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,33 @@ platformio run --target upload
5353

5454
There are 2 options:
5555

56-
1. Directly specify `--upoad-port` in command line
56+
- Directly specify `--upoad-port` in command line
5757
```bash
5858
platformio run --target upload --upload-port IP_ADDRESS_HERE
5959
```
60-
2. Specify [upload_port](http://docs.platformio.org/en/latest/projectconf.html#upload-port) option in `platformio.ini`
60+
- Specify [upload_port](http://docs.platformio.org/en/latest/projectconf.html#upload-port) option in `platformio.ini`
6161
```ini
6262
[env:***]
6363
...
6464
upload_port = IP_ADDRESS_HERE
6565
```
6666

67+
### Authentication and upload options
68+
69+
You can pass additional options/flags to OTA uploader using [upload_flags](http://docs.platformio.org/en/latest/projectconf.html#upload-flags) option in `platformio.ini`
70+
```ini
71+
[env:***]
72+
upload_flags = --port=8266
73+
```
74+
75+
Availalbe flags
76+
- `--port=ESP_PORT` ESP8266 ota Port. Default 8266
77+
- `--auth=AUTH` Set authentication password
78+
- `--spiffs` Use this option to transmit a SPIFFS image and do not flash the module
79+
80+
For the full list with availalbe options please run this command `~/.platformio/packages/framework-arduinoespressif/tools/espota.py -h`.
81+
82+
6783
## IDE Integration
6884
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
6985
```

0 commit comments

Comments
 (0)