From 8e357f8605c0be7302e788f16921b79ad0b7c452 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Sun, 27 Mar 2022 09:30:45 -0500 Subject: [PATCH] Update Reference.md --- docs/Reference.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Reference.md b/docs/Reference.md index a62f590..2aaf3c3 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -88,12 +88,13 @@ The following **optional** `homeSpan` methods override various HomeSpan initiali The following **optional** `homeSpan` methods enable additional features and provide for further customization of the HomeSpan environment. Unless otherwise noted, calls **should** be made before `begin()` to take effect: -* `void enableOTA(boolean auth=true)` +* `void enableOTA(boolean auth=true, boolean safeMode=true)` * enables [Over-the-Air (OTA) Updating](OTA.md) of a HomeSpan device, which is otherwise disabled * HomeSpan OTA requires an authorizing password unless *auth* is specified and set to *false* * the default OTA password for new HomeSpan devices is "homespan-ota" * this can be changed via the [HomeSpan CLI](CLI.md) using the 'O' command * note enabling OTA reduces the number of HAP Controller Connections by 1 + * OTA Safe Mode will be enabled by default unless the second argument is specified and set to *false*. HomeSpan OTA Safe Mode checks to ensure that sketches uploaded to an existing HomeSpan device are themselves HomeSpan sketches, and that they also have OTA enabled. See [HomeSpan OTA](../OTA.md) for details * `void enableAutoStartAP()` * enables automatic start-up of WiFi Access Point if WiFi Credentials are **not** found at boot time