From d88d35c6cf6a8591df4583c744b1b1cc65142846 Mon Sep 17 00:00:00 2001 From: RobinVdB8 Date: Sun, 26 Nov 2023 12:39:57 +0100 Subject: [PATCH] Renamed files from mug to mqtt_application --- project/Core/Inc/{mug.h => mqtt_application.h} | 8 ++++---- project/Core/Src/main.c | 2 +- project/Core/Src/{mug.c => mqtt_application.c} | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) rename project/Core/Inc/{mug.h => mqtt_application.h} (62%) rename project/Core/Src/{mug.c => mqtt_application.c} (99%) diff --git a/project/Core/Inc/mug.h b/project/Core/Inc/mqtt_application.h similarity index 62% rename from project/Core/Inc/mug.h rename to project/Core/Inc/mqtt_application.h index 1e3776c..9e8cca6 100644 --- a/project/Core/Inc/mug.h +++ b/project/Core/Inc/mqtt_application.h @@ -1,15 +1,15 @@ /** - * @file mug.h + * @file mqtt_application.h * header for mosquitto application of the groups assignment * @author RobinVdB */ -#ifndef INC_MUG_H_ -#define INC_MUG_H_ +#ifndef INC_MQTTA_H_ +#define INC_MQTTA_H_ /** * @brief Initialize MQTT application */ void mug_init(void); -#endif /* INC_MUG_H_ */ +#endif /* INC_MQTTA_H_ */ diff --git a/project/Core/Src/main.c b/project/Core/Src/main.c index 9adc667..5b47a18 100644 --- a/project/Core/Src/main.c +++ b/project/Core/Src/main.c @@ -28,7 +28,7 @@ #include "log.h" #include "llfs.h" #include "lcd_api.h" -#include "mug.h" +#include #include "tftp.h" /* USER CODE END Includes */ diff --git a/project/Core/Src/mug.c b/project/Core/Src/mqtt_application.c similarity index 99% rename from project/Core/Src/mug.c rename to project/Core/Src/mqtt_application.c index b6d20c9..5d283ec 100644 --- a/project/Core/Src/mug.c +++ b/project/Core/Src/mqtt_application.c @@ -1,9 +1,10 @@ /** - * @file mug.c + * @file mqtt_application.c * mosquitto application for group assignment * @author RobinVdB */ +#include #include #include "httpd.h" #include "lcd_api.h" @@ -11,7 +12,6 @@ #include "lwip/ip_addr.h" #include "mdns.h" #include "mqtt.h" -#include "mug.h" #define LOGGER_LEVEL_INFO #include "log.h" @@ -55,7 +55,7 @@ static uint16_t connection_attempt_counter; static uint32_t color; static uint32_t bgcolor; static input_topic_t inpub_id; -static const char* TAG = "mug"; +static const char* TAG = "MQTT"; /** * @brief callback function for publishing data