diff --git a/src/espmega_iot_core.cpp b/src/espmega_iot_core.cpp index b0d0f2a..a088d03 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -364,13 +364,13 @@ void mqtt_connect() publish_pwm_states(); publish_input_states(); publish_ac_state(); + mqtt_connected_user_callback(); standalone = false; } else { standalone = true; Serial.print("MQTT not connected, continuing in standalone mode\n"); - mqtt_connected_user_callback(); lcd_send_stop_bit(); } lcd_send_stop_bit();