diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-13 20:39:15 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-05-13 20:39:15 +0200 |
commit | 481ef51ac14ad5b3bf0935dd6110b6a7d8afe731 (patch) | |
tree | 8c292de44410998c7c8dbc93dafdfed5f29676b5 /minion | |
parent | 7cdad7abace13f834f19219ef91f57698a2429df (diff) |
refactor(minion): rename wifi module send to send_response
Diffstat (limited to 'minion')
-rw-r--r-- | minion/src/gymnasiearbete.cpp | 2 | ||||
-rw-r--r-- | minion/src/wifi_module.cpp | 2 | ||||
-rw-r--r-- | minion/src/wifi_module.hpp | 2 |
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; |