From 2a51b51e3570262c345e9a125d8b247783c62336 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Tue, 3 Oct 2023 02:24:30 +0700 Subject: [PATCH] add user state request callback --- src/espmega_iot_core.cpp | 1 + src/user_code.cpp | 4 ++++ src/user_code.hpp | 1 + 3 files changed, 6 insertions(+) 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