mirror of
https://github.com/esphome/esphome.git
synced 2026-02-18 15:35:59 -07:00
-49 is the boundray for excellent
This commit is contained in:
@@ -159,7 +159,7 @@ static const char *const TAG = "wifi";
|
||||
/// │ ↓ │
|
||||
/// │ attempts++, update last_check │
|
||||
/// │ ↓ │
|
||||
/// │ RSSI > -55 dBm? ────Yes────→ Skip scan (signal good)──────┐ │
|
||||
/// │ RSSI > -49 dBm? ────Yes────→ Skip scan (excellent signal)─┐ │
|
||||
/// │ ↓ No │ │
|
||||
/// │ ┌─────────────────┐ │ │
|
||||
/// │ │ Start scan │ │ │
|
||||
|
||||
@@ -615,7 +615,7 @@ class WiFiComponent : public Component {
|
||||
// Post-connect roaming constants
|
||||
static constexpr uint32_t ROAMING_CHECK_INTERVAL = 5 * 60 * 1000; // 5 minutes
|
||||
static constexpr int8_t ROAMING_MIN_IMPROVEMENT = 10; // dB
|
||||
static constexpr int8_t ROAMING_GOOD_RSSI = -55; // Skip scan if better than this
|
||||
static constexpr int8_t ROAMING_GOOD_RSSI = -49; // Skip scan if signal is excellent
|
||||
static constexpr uint8_t ROAMING_MAX_ATTEMPTS = 3;
|
||||
|
||||
// Group all 32-bit integers together
|
||||
|
||||
Reference in New Issue
Block a user