add mqtt connected callback
This commit is contained in:
parent
b5a7384d0f
commit
7b14acfa18
|
@ -370,6 +370,7 @@ void mqtt_connect()
|
||||||
{
|
{
|
||||||
standalone = true;
|
standalone = true;
|
||||||
Serial.print("MQTT not connected, continuing in standalone mode\n");
|
Serial.print("MQTT not connected, continuing in standalone mode\n");
|
||||||
|
mqtt_connected_user_callback();
|
||||||
lcd_send_stop_bit();
|
lcd_send_stop_bit();
|
||||||
}
|
}
|
||||||
lcd_send_stop_bit();
|
lcd_send_stop_bit();
|
||||||
|
|
|
@ -84,4 +84,8 @@ void timer1_callback()
|
||||||
|
|
||||||
void ac_changed_user_callback(int mode, int temperature, int fan_speed) {
|
void ac_changed_user_callback(int mode, int temperature, int fan_speed) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void mqtt_connected_user_callback() {
|
||||||
|
|
||||||
}
|
}
|
|
@ -24,6 +24,7 @@ void pwm_changed_user_callback(int pin);
|
||||||
void ac_changed_user_callback(int mode, int temperature, int fan_speed);
|
void ac_changed_user_callback(int mode, int temperature, int fan_speed);
|
||||||
void timer_tick_callback();
|
void timer_tick_callback();
|
||||||
void timer1_callback();
|
void timer1_callback();
|
||||||
|
void mqtt_connected_user_callback();
|
||||||
void bt0PopCallback(void *ptr);
|
void bt0PopCallback(void *ptr);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue