changed downlink topic name

This commit is contained in:
Bogdan Pilyugin 2022-09-29 08:32:08 +02:00
parent 662ea39e5b
commit cce7f193f6
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit f2b64b5c09d5bfe143367505b445bb335e2c1b34 Subproject commit f9576486d104b0e84bedb6f0a7f7c2913548cb73

View File

@ -63,7 +63,7 @@ void UserMQTTEventHndlr(void *handler_args, esp_event_base_t base, int32_t event
case MQTT_EVENT_CONNECTED: case MQTT_EVENT_CONNECTED:
ComposeTopic(topic, ComposeTopic(topic,
GetSysConf()->mqttStation[ctx->mqtt_index].RootTopic, GetSysConf()->mqttStation[ctx->mqtt_index].RootTopic,
"DOWNLINK", "DWLINK",
GetSysConf()->mqttStation[ctx->mqtt_index].ClientID, GetSysConf()->mqttStation[ctx->mqtt_index].ClientID,
"USER"); "USER");
//Subscribe to the service called "USER" //Subscribe to the service called "USER"
@ -74,7 +74,7 @@ void UserMQTTEventHndlr(void *handler_args, esp_event_base_t base, int32_t event
case MQTT_EVENT_DATA: case MQTT_EVENT_DATA:
ComposeTopic(topic, ComposeTopic(topic,
GetSysConf()->mqttStation[ctx->mqtt_index].RootTopic, GetSysConf()->mqttStation[ctx->mqtt_index].RootTopic,
"DOWNLINK", "DWLINK",
GetSysConf()->mqttStation[ctx->mqtt_index].ClientID, GetSysConf()->mqttStation[ctx->mqtt_index].ClientID,
"USER"); "USER");
if (!memcmp(topic, event->topic, event->topic_len)) if (!memcmp(topic, event->topic, event->topic_len))