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
1. Create a new project using :ref:`piohome` or initialize a project via
289
+
:ref:`piocore` and :ref:`cmd_project_init` (if you have not initialized it yet)
290
+
2. Copy the `basicOTA <https://github.com/espressif/arduino-esp32/tree/master/libraries/ArduinoOTA/examples/BasicOTA>`_
291
+
example for Arduino or `Simple OTA <https://github.com/espressif/esp-idf/tree/master/examples/system/ota/simple_ota_example>`_ example for ESP-IDF to :ref:`projectconf_pio_src_dir`
292
+
and configure your WiFi credentials
293
+
(SSID and password).
294
+
3. Compile the project to ensure there are no syntax errors in the code.
289
295
290
-
* Directly specify :option:`pio run --upload-port` in command line
296
+
To upload the binary you can either specify the upload address directly in the CLI
297
+
command using the :option:`pio run --upload-port` option:
291
298
292
299
.. code-block:: bash
293
300
294
301
pio run --target upload --upload-port IP_ADDRESS_HERE or mDNS_NAME.local
295
302
296
-
* Specify ``upload_port`` option in :ref:`projectconf`
303
+
For example:
304
+
305
+
.. code-block:: none
297
306
307
+
pio run -t upload --upload-port 192.168.0.255
308
+
pio run -t upload --upload-port myesp32.local
298
309
299
-
You also need to set :ref:`projectconf_upload_protocol` to ``espota``.
310
+
Or use the ``upload_port`` option in :ref:`projectconf`. Please note that you also
311
+
need to set :ref:`projectconf_upload_protocol` to ``espota``:
300
312
301
313
.. code-block:: ini
302
314
303
315
[env:myenv]
304
316
upload_protocol = espota
305
317
upload_port = IP_ADDRESS_HERE or mDNS_NAME.local
306
318
307
-
For example,
319
+
For example:
320
+
321
+
.. code-block:: ini
322
+
323
+
[env:myenv]
324
+
platform = espressif32
325
+
board = esp32dev
326
+
framework = arduino
327
+
upload_protocol = espota
328
+
upload_port = 192.168.0.255
308
329
309
-
* ``pio run -t upload --upload-port 192.168.0.255``
310
-
* ``pio run -t upload --upload-port myesp8266.local``
0 commit comments