mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-02 23:47:42 +00:00
Fix wifi strongest signal detection
Fix wifi strongest signal detection (#4704)
This commit is contained in:
parent
a17a40b5f3
commit
a80fcd98d7
@ -1,6 +1,7 @@
|
|||||||
/* 6.4.0.1 20181217
|
/* 6.4.0.1 20181217
|
||||||
* Add support for AZ-Instrument 7798 CO2 meter/datalogger (#4672)
|
* Add support for AZ-Instrument 7798 CO2 meter/datalogger (#4672)
|
||||||
* Change RAM usage BMP/BME I2C sensors
|
* Change RAM usage BMP/BME I2C sensors
|
||||||
|
* Fix wifi strongest signal detection (#4704)
|
||||||
*
|
*
|
||||||
* 6.4.0 20181217
|
* 6.4.0 20181217
|
||||||
* Change GUI Configure Module by using AJAX for data fetch to cut page size (and memory use) by 40%
|
* Change GUI Configure Module by using AJAX for data fetch to cut page size (and memory use) by 40%
|
||||||
|
@ -249,7 +249,7 @@ void WifiBeginAfterScan()
|
|||||||
uint8_t* bssid = WiFi.BSSID(); // Get current bssid
|
uint8_t* bssid = WiFi.BSSID(); // Get current bssid
|
||||||
memcpy((void*) &wifi_bssid, (void*) bssid, sizeof(wifi_bssid));
|
memcpy((void*) &wifi_bssid, (void*) bssid, sizeof(wifi_bssid));
|
||||||
best_network_db = WiFi.RSSI(); // Get current rssi and add threshold
|
best_network_db = WiFi.RSSI(); // Get current rssi and add threshold
|
||||||
if (best_network_db < -WIFI_RSSI_THRESHOLD) { best_network_db +WIFI_RSSI_THRESHOLD; }
|
if (best_network_db < -WIFI_RSSI_THRESHOLD) { best_network_db += WIFI_RSSI_THRESHOLD; }
|
||||||
wifi_scan_state = 3;
|
wifi_scan_state = 3;
|
||||||
}
|
}
|
||||||
// Init scan
|
// Init scan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user