add mqtt connected callback

This commit is contained in:
Siwat Sirichai 2023-10-03 02:19:50 +07:00
parent b5a7384d0f
commit 7b14acfa18
3 changed files with 6 additions and 0 deletions

View File

@ -370,6 +370,7 @@ void mqtt_connect()
{
standalone = true;
Serial.print("MQTT not connected, continuing in standalone mode\n");
mqtt_connected_user_callback();
lcd_send_stop_bit();
}
lcd_send_stop_bit();

View File

@ -84,4 +84,8 @@ void timer1_callback()
void ac_changed_user_callback(int mode, int temperature, int fan_speed) {
}
void mqtt_connected_user_callback() {
}

View File

@ -24,6 +24,7 @@ void pwm_changed_user_callback(int pin);
void ac_changed_user_callback(int mode, int temperature, int fan_speed);
void timer_tick_callback();
void timer1_callback();
void mqtt_connected_user_callback();
void bt0PopCallback(void *ptr);