From 11396e2649772c03b66e48d271702a81b85486ff Mon Sep 17 00:00:00 2001 From: axelhamburch Date: Sun, 15 Dec 2024 00:39:46 +0100 Subject: [PATCH 1/2] force wifi scanning --- bitcoinSwitch/bitcoinSwitch.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/bitcoinSwitch/bitcoinSwitch.ino b/bitcoinSwitch/bitcoinSwitch.ino index 13875bb..231c410 100644 --- a/bitcoinSwitch/bitcoinSwitch.ino +++ b/bitcoinSwitch/bitcoinSwitch.ino @@ -58,6 +58,7 @@ struct KeyValue { }; void setup() { + WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN); // Force scanning for all APs, not just the first one Serial.begin(115200); Serial.println("Welcome to BitcoinSwitch, running on version: " + version); bool triggerConfig = false; From e511180e33e27edda81a9093e701290946850728 Mon Sep 17 00:00:00 2001 From: axelhamburch Date: Sun, 15 Dec 2024 01:12:47 +0100 Subject: [PATCH 2/2] Correction of the position --- bitcoinSwitch/bitcoinSwitch.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoinSwitch/bitcoinSwitch.ino b/bitcoinSwitch/bitcoinSwitch.ino index 231c410..b87dd24 100644 --- a/bitcoinSwitch/bitcoinSwitch.ino +++ b/bitcoinSwitch/bitcoinSwitch.ino @@ -58,7 +58,6 @@ struct KeyValue { }; void setup() { - WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN); // Force scanning for all APs, not just the first one Serial.begin(115200); Serial.println("Welcome to BitcoinSwitch, running on version: " + version); bool triggerConfig = false; @@ -85,6 +84,7 @@ void setup() { Serial.println("Launch serial config"); configOverSerialPort(); } else { + WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN); // Force scanning for all APs, not just the first one WiFi.begin(ssid.c_str(), wifiPassword.c_str()); Serial.print("Connecting to WiFi"); while (WiFi.status() != WL_CONNECTED) {