mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-14 20:21:25 +01:00
Add docs for keep_user_credentials (#2301)
This commit is contained in:
parent
44689b9d69
commit
4237b1dd31
@ -16,7 +16,7 @@ After 1 minute of unsuccessful WiFi connection attempts, the ESP will start a Wi
|
|||||||
:width: 70.0%
|
:width: 70.0%
|
||||||
|
|
||||||
In this web interface, you can manually override the WiFi settings of the device (please note
|
In this web interface, you can manually override the WiFi settings of the device (please note
|
||||||
this will be overwritten by any subsequent upload, so make sure to also update your YAML configuration).
|
this will be overwritten by any subsequent upload (unless ``keep_user_credentials`` is enabled) so make sure to also update your YAML configuration).
|
||||||
|
|
||||||
Additionally, you can upload a new firmware file.
|
Additionally, you can upload a new firmware file.
|
||||||
|
|
||||||
@ -34,9 +34,16 @@ manually in your browser.
|
|||||||
password: !secret wifi_ap_password
|
password: !secret wifi_ap_password
|
||||||
|
|
||||||
captive_portal:
|
captive_portal:
|
||||||
|
# Set to true to preserve captive_portal credentials over OTA updates
|
||||||
|
# Note that you can't set STA credentials in YAML if you're using this
|
||||||
|
keep_user_credentials: false
|
||||||
|
|
||||||
|
|
||||||
No configuration variables.
|
Configuration variables:
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
- **keep_user_credentials** (*Optional*, boolean): Do not erase WiFi credentials entered using :doc:`captive_portal` over subsequent OTA updates.
|
||||||
|
Note: WiFi STA credentials cannot be set in YAML when using this.
|
||||||
|
|
||||||
See Also
|
See Also
|
||||||
--------
|
--------
|
||||||
|
@ -49,6 +49,9 @@ Example configuration
|
|||||||
# In combination with the `ap` this allows the user
|
# In combination with the `ap` this allows the user
|
||||||
# to provision wifi credentials to the device.
|
# to provision wifi credentials to the device.
|
||||||
captive_portal:
|
captive_portal:
|
||||||
|
# Optionally, preserve provisioned credentials
|
||||||
|
# over subsequent OTA updates.
|
||||||
|
keep_user_credentials: true
|
||||||
|
|
||||||
# Sets up Bluetooth LE (Only on ESP32) to allow the user
|
# Sets up Bluetooth LE (Only on ESP32) to allow the user
|
||||||
# to provision wifi credentials to the device.
|
# to provision wifi credentials to the device.
|
||||||
|
Loading…
Reference in New Issue
Block a user