update state callback

This commit is contained in:
Siwat Sirichai 2023-10-03 02:34:40 +07:00
parent 2079c77a7a
commit 6963ea78df
2 changed files with 5 additions and 0 deletions

View File

@ -297,3 +297,7 @@ void mqtt_connected_user_callback() {
mqtt.subscribe(AC_LOCK_TOPIC, ac_lock_callback);
ac_lock_report();
}
void user_state_request_callback() {
ac_lock_report();
}

View File

@ -72,6 +72,7 @@ void ac_update_lcd();
void pwm_update_lcd();
void mqtt_connected_user_callback();
void ac_lock_report();
void user_state_request_callback();
// ESPMega IoT Core Build-in Functions
extern void pwm_set_state(int id, int state);