You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/platformio.md
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -53,17 +53,33 @@ platformio run --target upload
53
53
54
54
There are 2 options:
55
55
56
-
1. Directly specify `--upoad-port` in command line
56
+
- Directly specify `--upoad-port` in command line
57
57
```bash
58
58
platformio run --target upload --upload-port IP_ADDRESS_HERE
59
59
```
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`
61
61
```ini
62
62
[env:***]
63
63
...
64
64
upload_port = IP_ADDRESS_HERE
65
65
```
66
66
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
+
67
83
## IDE Integration
68
84
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
0 commit comments