From 481ef51ac14ad5b3bf0935dd6110b6a7d8afe731 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 13 May 2022 20:39:15 +0200 Subject: refactor(minion): rename wifi module send to send_response --- minion/src/gymnasiearbete.cpp | 2 +- minion/src/wifi_module.cpp | 2 +- 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; -- cgit v1.2.3-18-g5258