summaryrefslogtreecommitdiff
path: root/minion
diff options
context:
space:
mode:
Diffstat (limited to 'minion')
-rw-r--r--minion/src/gymnasiearbete.cpp2
-rw-r--r--minion/src/wifi_module.cpp2
-rw-r--r--minion/src/wifi_module.hpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/minion/src/gymnasiearbete.cpp b/minion/src/gymnasiearbete.cpp
index efdb37b..42e03a1 100644
--- a/minion/src/gymnasiearbete.cpp
+++ b/minion/src/gymnasiearbete.cpp
@@ -98,7 +98,7 @@ void loop()
Serial.print("\nData: ");
Serial.println(request->data());
- wifi_module.send(connection_id, "lmao!");
+ wifi_module.send_response(connection_id, "lmao!");
wifi_module.close_connection(connection_id);
diff --git a/minion/src/wifi_module.cpp b/minion/src/wifi_module.cpp
index d56e51e..7c3e5bc 100644
--- a/minion/src/wifi_module.cpp
+++ b/minion/src/wifi_module.cpp
@@ -329,7 +329,7 @@ auto WiFiModule::close_connection(size_t connection_id) noexcept -> bool
return true;
}
-auto WiFiModule::send(size_t connection_id, const char *data) noexcept -> bool
+auto WiFiModule::send_response(size_t connection_id, const char *data) noexcept -> bool
{
const auto *cmd = "AT+CIPSEND";
diff --git a/minion/src/wifi_module.hpp b/minion/src/wifi_module.hpp
index b7310bb..9852d1e 100644
--- a/minion/src/wifi_module.hpp
+++ b/minion/src/wifi_module.hpp
@@ -95,7 +95,7 @@ public:
auto close_connection(size_t connection_id) noexcept -> bool;
- auto send(size_t connection_id, const char *data) noexcept -> bool;
+ auto send_response(size_t connection_id, const char *data) noexcept -> bool;
private:
SoftwareSerial _serial;