Skip to content

Commit

Permalink
Fix custom topic
Browse files Browse the repository at this point in the history
  • Loading branch information
Eshmun committed Mar 15, 2023
1 parent 3e6c9a6 commit 9352950
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mqtt/hasp_mqtt_esp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ void onMqttConnect(esp_mqtt_client_handle_t client)
// mqttSubscribeTo(mqttNodeTopic + subtopic);

#if defined(HASP_USE_CUSTOM)
subtopic = F(MQTT_TOPIC_CUSTOM "/#");
mqttSubscribeTo(mqttGroupTopic + subtopic);
mqttSubscribeTo(mqttNodeTopic + subtopic);
#endif
String subtopic = F(MQTT_TOPIC_CUSTOM "/#");
mqttSubscribeTo(mqttGroupCommandTopic + subtopic);
mqttSubscribeTo(mqttNodeCommandTopic + subtopic);
#endif

/* Home Assistant auto-configuration */
#ifdef HASP_USE_HA
Expand Down

0 comments on commit 9352950

Please sign in to comment.