diff --git a/src/comm.cpp b/src/comm.cpp index a0963e7..2c34b27 100644 --- a/src/comm.cpp +++ b/src/comm.cpp @@ -48,7 +48,7 @@ byte CommunicationsController::process(float *azimuth, float *altitude) { return 0; } -void CommunicationsController::handle_client() { +void CommunicationsController::handleClient() { l4s.flush(); received = recv(); } @@ -67,7 +67,7 @@ byte CommunicationsController::parseLook4Sat(float* azimuth, float* altitude) { return 0; } -void CommunicationsController::create_connection() { +void CommunicationsController::createConnection() { l4s = l4sServer.accept(); } diff --git a/src/comm.h b/src/comm.h index a3ea71e..8cf81f3 100644 --- a/src/comm.h +++ b/src/comm.h @@ -3,17 +3,13 @@ #include #include - #define L4S_PORT 4533 #define WIFI_SSID "VynTracker" #define WIFI_PASSWORD "senha1234" - #ifndef COMM_H #define COMM_H - - class CommunicationsController { private: String received = "Ç"; @@ -23,8 +19,8 @@ class CommunicationsController { String recv(); void initOta(); void initWifi(); - void handle_client(); - void create_connection(); + void handleClient(); + void createConnection(); public: void init();