From 204316bf1be471432bbab05e8096e80af2d0e7fd Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 5 Jan 2021 17:14:01 +0100 Subject: [PATCH] Change force initial default state ``SetOption57 1`` Change force initial default state ``SetOption57 1`` to scan wifi network every 44 minutes for strongest signal (#10395) --- CHANGELOG.md | 6 +++++- RELEASENOTES.md | 5 +++-- tasmota/my_user_config.h | 2 +- tasmota/settings.ino | 3 +++ tasmota/tasmota_version.h | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5176046c..15fe8f318 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,11 @@ All notable changes to this project will be documented in this file. ## [Unreleased] - Development -## [9.2.0.2] +## [9.2.0.3] +### Changed +- Force initial default state ``SetOption57 1`` to scan wifi network every 44 minutes for strongest signal (#10395) + +## [9.2.0.2] 20210105 ### Added - Basic support for ESP32 Odroid Go 16MB binary tasmota32-odroidgo.bin (#8630) - Command ``CTRange`` to specify the visible CT range the bulb is capable of (#10311) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 01f4cc1fc..95a449d99 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -56,7 +56,7 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota [Complete list](BUILDS.md) of available feature and sensors. -## Changelog v9.2.0.2 +## Changelog v9.2.0.3 ### Added - Command ``CTRange`` to specify the visible CT range the bulb is capable of [#10311](https://github.com/arendst/Tasmota/issues/10311) - Command ``RuleTimer0`` to access all RuleTimers at once [#10352](https://github.com/arendst/Tasmota/issues/10352) @@ -90,7 +90,8 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota ### Changed - Logging from heap to stack freeing 700 bytes RAM -- Disabled ``USE_LIGHT`` light support for ZBBridge saving 17.6kB (#10374) +- Disabled ``USE_LIGHT`` light support for ZBBridge saving 17.6kB [#10374](https://github.com/arendst/Tasmota/issues/10374) +- Force initial default state ``SetOption57 1`` to scan wifi network every 44 minutes for strongest signal [#10395](https://github.com/arendst/Tasmota/issues/10395) ### Fixed - Redesign syslog and mqttlog using log buffer [#10164](https://github.com/arendst/Tasmota/issues/10164) diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index fb9c30774..9d33e6312 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -80,7 +80,7 @@ // The configuration can be changed after first setup using WifiConfig 0, 2, 4, 5, 6 and 7. #define WIFI_ARP_INTERVAL 0 // [SetOption41] Send gratuitous ARP interval #define WIFI_SCAN_AT_RESTART false // [SetOption56] Scan wifi network at restart for configured AP's -#define WIFI_SCAN_REGULARLY false // [SetOption57] Scan wifi network every 44 minutes for configured AP's +#define WIFI_SCAN_REGULARLY true // [SetOption57] Scan wifi network every 44 minutes for configured AP's // -- Syslog -------------------------------------- #define SYS_LOG_HOST "" // [LogHost] (Linux) syslog host diff --git a/tasmota/settings.ino b/tasmota/settings.ino index b74d9bb4b..d1985fee8 100644 --- a/tasmota/settings.ino +++ b/tasmota/settings.ino @@ -1325,6 +1325,9 @@ void SettingsDelta(void) if (Settings.version < 0x09010000) { Settings.dimmer_step = DEFAULT_DIMMER_STEP; } + if (Settings.version < 0x09020003) { + Settings.flag3.use_wifi_rescan = true; // As a result of #10395 + } Settings.version = VERSION; SettingsSave(1); diff --git a/tasmota/tasmota_version.h b/tasmota/tasmota_version.h index c61d7dbaa..d4b504f4f 100644 --- a/tasmota/tasmota_version.h +++ b/tasmota/tasmota_version.h @@ -20,6 +20,6 @@ #ifndef _TASMOTA_VERSION_H_ #define _TASMOTA_VERSION_H_ -const uint32_t VERSION = 0x09020002; +const uint32_t VERSION = 0x09020003; #endif // _TASMOTA_VERSION_H_