summaryrefslogtreecommitdiff
path: root/minion
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-12 18:46:23 +0200
committerHampusM <hampus@hampusmat.com>2022-05-12 18:46:23 +0200
commit51682e6475d477ced2427c131ff7e975b7cbe4b9 (patch)
tree12b711a504402305f6a6cbb0e2f0138e4836d6ac /minion
parent05cf212e79728c2bf1449ee5cfdf7dd6b1a8c4fd (diff)
refactor(minion): rename the connect method in wifi module
Diffstat (limited to 'minion')
-rw-r--r--minion/src/gymnasiearbete.cpp3
-rw-r--r--minion/src/wifi_module.cpp2
-rw-r--r--minion/src/wifi_module.hpp2
3 files changed, 4 insertions, 3 deletions
diff --git a/minion/src/gymnasiearbete.cpp b/minion/src/gymnasiearbete.cpp
index 30e5605..efdb37b 100644
--- a/minion/src/gymnasiearbete.cpp
+++ b/minion/src/gymnasiearbete.cpp
@@ -46,7 +46,8 @@ void setup()
delay(SECOND_IN_MILLIS);
- const auto wifi_connect_success = wifi_module.connect(WIFI_SSID, WIFI_PASSWORD);
+ const auto wifi_connect_success =
+ wifi_module.connect_to_wifi(WIFI_SSID, WIFI_PASSWORD);
Serial.print(
wifi_connect_success ? "Connected to wifi network '"
diff --git a/minion/src/wifi_module.cpp b/minion/src/wifi_module.cpp
index 065bcdf..8895722 100644
--- a/minion/src/wifi_module.cpp
+++ b/minion/src/wifi_module.cpp
@@ -34,7 +34,7 @@ void WiFiModule::reset() noexcept
);
}
-auto WiFiModule::connect(const char *ssid, const char *password) noexcept -> bool
+auto WiFiModule::connect_to_wifi(const char *ssid, const char *password) noexcept -> bool
{
const char cmd[] = "AT+CWJAP";
diff --git a/minion/src/wifi_module.hpp b/minion/src/wifi_module.hpp
index 62ea4f4..55abdfc 100644
--- a/minion/src/wifi_module.hpp
+++ b/minion/src/wifi_module.hpp
@@ -59,7 +59,7 @@ public:
*
* @returns Whether or not it succeeded.
*/
- auto connect(const char *ssid, const char *password) noexcept -> bool;
+ auto connect_to_wifi(const char *ssid, const char *password) noexcept -> bool;
void set_wifi_mode(WifiMode wifi_mode) noexcept;