//ESP_LOGE(TAG, myMqttInitSuccess?(unsigned char*)"Something in challenge app failed. Re-initializing MQTT in 5s.":(unsigned char*)"Init of MyMqtt failed! Retrying in 5s.");
ESP_LOGE(TAG,"Challenge Mainloop failure: %s",myMqttInitSuccess==true?"Something in challenge app failed. Re-initializing MQTT in 5s.":"Init of MyMqtt failed! Retrying in 5s.");
MyMqtt_Deinit();
MyMqtt_Deinit();
if(myMqttInitSuccess==false){vTaskDelay(5000);}// only wait if the init is the issue
if(myMqttInitSuccess==false){vTaskDelay(5000);}// only wait if the init is the issue