add user state request callback

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

View File

@ -600,6 +600,7 @@ void state_request_callback(String topic, String message)
publish_input_states();
publish_pwm_states();
publish_ac_state();
user_state_request_callback();
}
void ir_loop()

View File

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

View File

@ -26,6 +26,7 @@ void timer_tick_callback();
void timer1_callback();
void mqtt_connected_user_callback();
void bt0PopCallback(void *ptr);
void user_state_request_callback();
// ESPMega IoT Core Build-in Functions