disabled endless mqtt publishing, added shell help for setMode

main
Jonas Arnold 4 years ago
parent 647b023c0e
commit c3d42ea3e4
  1. 4
      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;
}

Loading…
Cancel
Save