From c3d42ea3e452941a2eea18b0cffa8e57457d7bee Mon Sep 17 00:00:00 2001 From: Jonas Arnold Date: Fri, 9 Dec 2022 10:41:00 +0100 Subject: [PATCH] disabled endless mqtt publishing, added shell help for setMode --- ADIS_ESP32_Eclipse/main/challenge_app.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ADIS_ESP32_Eclipse/main/challenge_app.c b/ADIS_ESP32_Eclipse/main/challenge_app.c index 9f00fa0..9f6a3f5 100644 --- a/ADIS_ESP32_Eclipse/main/challenge_app.c +++ b/ADIS_ESP32_Eclipse/main/challenge_app.c @@ -58,7 +58,7 @@ static void appTask(void *pv){ // endless loop for(;;){ - MyMqtt_Publish("scada/status", "Testmessage from ESP"); + //MyMqtt_Publish("scada/status", "Testmessage from ESP"); vTaskDelay(pdMS_TO_TICKS(10000)); } @@ -109,6 +109,8 @@ static uint8_t PrintStatus(const McuShell_StdIOType *io) { static uint8_t PrintHelp(const McuShell_StdIOType *io) { McuShell_SendHelpStr((unsigned char*)"challenge", (unsigned char*)"Group of ESP32 Challenge commands\r\n", io->stdOut); McuShell_SendHelpStr((unsigned char*)" help|status", (unsigned char*)"Shows Challenge help or status\r\n", io->stdOut); + McuShell_SendHelpStr((unsigned char*)" setMode s(tationary)", (unsigned char*)"Sets the mode of this robot to stationary\r\n", io->stdOut); + McuShell_SendHelpStr((unsigned char*)" setMode m(mobile)", (unsigned char*)"Sets the mode of this robot to mobile\r\n", io->stdOut); return ERR_OK; }