]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Plus/Source/FreeRTOS-IoT-Libraries/c_sdk/standard/mqtt/src/iot_mqtt_subscription.c
Correct an err in queue.c introduced when previously updating behaviour when queue...
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-IoT-Libraries / c_sdk / standard / mqtt / src / iot_mqtt_subscription.c
index 59caccc7fb33103fef9701b2ef77e55a0e4238a4..f4546b55826a27edb439a6abce0ebf01865e0996 100644 (file)
@@ -586,7 +586,7 @@ void _IotMqtt_RemoveSubscriptionByTopicFilter( _mqttConnection_t * pMqttConnecti
 bool IotMqtt_IsSubscribed( IotMqttConnection_t mqttConnection,\r
                            const char * pTopicFilter,\r
                            uint16_t topicFilterLength,\r
-                           IotMqttSubscription_t * pCurrentSubscription )\r
+                           IotMqttSubscription_t * const pCurrentSubscription )\r
 {\r
     bool status = false;\r
     _mqttSubscription_t * pSubscription = NULL;\r
@@ -595,7 +595,7 @@ bool IotMqtt_IsSubscribed( IotMqttConnection_t mqttConnection,
 \r
     topicMatchParams.pTopicName = pTopicFilter;\r
     topicMatchParams.topicNameLength = topicFilterLength;\r
-    topicMatchParams.exactMatchOnly = false;\r
+    topicMatchParams.exactMatchOnly = true;\r
 \r
     /* Prevent any other thread from modifying the subscription list while this\r
      * function is running. */\r