diff options
Diffstat (limited to 'minion/src')
-rw-r--r-- | minion/src/gymnasiearbete.cpp | 4 |
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] = ""; |