From ba7ed68c04dcd0c879a22a584b5984a126b476fe Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Mon, 11 Dec 2023 14:33:55 +0100 Subject: [PATCH] tcp_cmd add init in the app_main --- project/Core/Src/app_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/project/Core/Src/app_main.c b/project/Core/Src/app_main.c index d90e3c0..0688b88 100644 --- a/project/Core/Src/app_main.c +++ b/project/Core/Src/app_main.c @@ -12,6 +12,7 @@ #include "tftp.h" #include "modbus_tcp.h" #include "UDP_broadcast.h" +#include "tcp_cmd.h" static const char *TAG = "app_main"; @@ -35,6 +36,9 @@ void app_main(void const * argument) /* Initialize Modbus*/ modbus_init(); + /* Initialize the tcp command interface */ + tcp_cmd_init(); + /* Initialize the MQTT application */ mqtt_application_init(); @@ -46,6 +50,7 @@ void app_main(void const * argument) if (udp_broadcast_set_owner_details("Joran", "Van Nieuwenhoven") != ERR_OK){ LOG_WARN(TAG,"error setting owner's details"); } + /* Infinite loop */ for(;;) {