mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Add custom_state_subtopic
This commit is contained in:
parent
1f471ad308
commit
5c80f41fcf
@ -52,7 +52,7 @@ uint8_t saved_jsonl_page = 0;
|
||||
*/
|
||||
void dispatch_state_subtopic(const char* subtopic, const char* payload)
|
||||
{
|
||||
#if HASP_USE_MQTT == 0 && HASP_USE_TASMOTA_CLIENT == 0
|
||||
#if HASP_USE_MQTT == 0 && defined(HASP_USE_TASMOTA_CLIENT) && HASP_USE_TASMOTA_CLIENT > 0
|
||||
LOG_TRACE(TAG_MSGR, F("%s => %s"), subtopic, payload);
|
||||
#else
|
||||
|
||||
@ -74,15 +74,15 @@ void dispatch_state_subtopic(const char* subtopic, const char* payload)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HASP_USE_CUSTOM > 0
|
||||
custom_state_subtopic(subtopic, payload);
|
||||
#endif
|
||||
|
||||
#if HASP_USE_TASMOTA_CLIENT > 0
|
||||
#if defined(HASP_USE_TASMOTA_CLIENT) && HASP_USE_TASMOTA_CLIENT > 0
|
||||
slave_send_state(subtopic, payload);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(HASP_USE_CUSTOM) && HASP_USE_CUSTOM > 0
|
||||
custom_state_subtopic(subtopic, payload);
|
||||
#endif
|
||||
}
|
||||
|
||||
void dispatch_state_eventid(const char* topic, hasp_event_t eventid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user