From d95ce9a08977b82fe6f331f110c218044b9f41cb Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 30 May 2022 13:09:14 +0200 Subject: fix(minion): move set wifi mode to before wifi connect --- minion/src/gymnasiearbete.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minion/src/gymnasiearbete.cpp b/minion/src/gymnasiearbete.cpp index 41be0ea..54e8d50 100644 --- a/minion/src/gymnasiearbete.cpp +++ b/minion/src/gymnasiearbete.cpp @@ -56,6 +56,8 @@ void setup() delay(MILLIS_IN_SECOND); + wifi_module.set_wifi_mode(WifiMode::Station); + const auto wifi_connect_success = wifi_module.connect_to_wifi(WIFI_SSID, WIFI_PASSWORD); @@ -71,8 +73,6 @@ void setup() util::quit(); } - wifi_module.set_wifi_mode(WifiMode::Station); - delay(MILLIS_IN_SECOND * 3U); char local_ip[MAX_NETWORK_MODULE_RESPONSE_LENGTH] = ""; -- cgit v1.2.3-18-g5258