From 5a2f48f818991bf01fce9f2740b47909ed8320a8 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 8 Nov 2022 11:11:12 +1300 Subject: [PATCH] Add default ota port for rp2040 (#2415) --- components/ota.rst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/components/ota.rst b/components/ota.rst index 1e053fa4f..c05e9f33e 100644 --- a/components/ota.rst +++ b/components/ota.rst @@ -16,8 +16,8 @@ ESPHome also has an "OTA safe mode". If for some reason your node gets into a boot loop, ESPHome will automatically try to detect this and will go over into a safe mode after the configured unsuccessful boot attempts (Defaults to ``10``). In that mode, all components are disabled and only Serial -Logging + Network(WiFi or Ethernet) + OTA are initialized, so that you can upload a new -binary. You can trigger entering safe mode by either configuring a dedicated button or +Logging + Network(WiFi or Ethernet) + OTA are initialized, so that you can upload a new +binary. You can trigger entering safe mode by either configuring a dedicated button or switch to do that or by pressing the reset button on the board for ``num_attempts`` times. @@ -34,8 +34,12 @@ Configuration variables: - **safe_mode** (*Optional*, boolean): Whether to enable safe mode. Defaults to ``true``. - **password** (*Optional*, string): The password to use for updates. -- **port** (*Optional*, int): The port to use for OTA updates. Defaults - to ``3232`` for the ESP32 and ``8266`` for the ESP8266. +- **port** (*Optional*, int): The port to use for OTA updates. + Defaults: + + - ``3232`` for the ESP32 + - ``8266`` for the ESP8266 + - ``2040`` for the RP2040 - **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. - **reboot_timeout** (*Optional*, :ref:`config-time`): The amount of time to wait before rebooting when in safe mode. Defaults to ``5min``.