diff --git a/src/user_code.cpp b/src/user_code.cpp index f1fc3a8..2816e3e 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -296,4 +296,8 @@ void pwm_update_lcd() { void mqtt_connected_user_callback() { mqtt.subscribe(AC_LOCK_TOPIC, ac_lock_callback); ac_lock_report(); +} + +void user_state_request_callback() { + ac_lock_report(); } \ No newline at end of file diff --git a/src/user_code.hpp b/src/user_code.hpp index c9fbcff..43e2bc4 100644 --- a/src/user_code.hpp +++ b/src/user_code.hpp @@ -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);