diff --git a/src/espmega_iot_core.cpp b/src/espmega_iot_core.cpp index 8dd9f8e..b0d0f2a 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -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() diff --git a/src/user_code.cpp b/src/user_code.cpp index 1e771af..7507243 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -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() { + } \ No newline at end of file diff --git a/src/user_code.hpp b/src/user_code.hpp index a1ff80e..72cc5a0 100644 --- a/src/user_code.hpp +++ b/src/user_code.hpp @@ -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