changed downlink topic name
This commit is contained in:
parent
662ea39e5b
commit
cce7f193f6
|
|
@ -1 +1 @@
|
|||
Subproject commit f2b64b5c09d5bfe143367505b445bb335e2c1b34
|
||||
Subproject commit f9576486d104b0e84bedb6f0a7f7c2913548cb73
|
||||
|
|
@ -63,7 +63,7 @@ void UserMQTTEventHndlr(void *handler_args, esp_event_base_t base, int32_t event
|
|||
case MQTT_EVENT_CONNECTED:
|
||||
ComposeTopic(topic,
|
||||
GetSysConf()->mqttStation[ctx->mqtt_index].RootTopic,
|
||||
"DOWNLINK",
|
||||
"DWLINK",
|
||||
GetSysConf()->mqttStation[ctx->mqtt_index].ClientID,
|
||||
"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:
|
||||
ComposeTopic(topic,
|
||||
GetSysConf()->mqttStation[ctx->mqtt_index].RootTopic,
|
||||
"DOWNLINK",
|
||||
"DWLINK",
|
||||
GetSysConf()->mqttStation[ctx->mqtt_index].ClientID,
|
||||
"USER");
|
||||
if (!memcmp(topic, event->topic, event->topic_len))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user