diff --git a/src/espmega_iot_core.cpp b/src/espmega_iot_core.cpp index 677e0c2..03cf954 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -600,7 +600,6 @@ void state_request_callback(String topic, String message) publish_input_states(); publish_pwm_states(); publish_ac_state(); - user_state_request_callback(); } void ir_loop() diff --git a/src/user_code.cpp b/src/user_code.cpp index 2816e3e..f1fc3a8 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -296,8 +296,4 @@ 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 43e2bc4..c9fbcff 100644 --- a/src/user_code.hpp +++ b/src/user_code.hpp @@ -72,7 +72,6 @@ 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);