summaryrefslogtreecommitdiff
path: root/minion/src/gymnasiearbete.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-30 13:09:14 +0200
committerHampusM <hampus@hampusmat.com>2022-05-30 13:09:14 +0200
commitd95ce9a08977b82fe6f331f110c218044b9f41cb (patch)
tree218fae321ee06224ee015af72cf856adeafb2179 /minion/src/gymnasiearbete.cpp
parent7da6fc9f7be6c732aeae09cdcc338e1af2b5ad4c (diff)
fix(minion): move set wifi mode to before wifi connect
Diffstat (limited to 'minion/src/gymnasiearbete.cpp')
-rw-r--r--minion/src/gymnasiearbete.cpp4
1 files 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] = "";