From b9c8b5c8ce0e7056b824fea07e8685e96b29af06 Mon Sep 17 00:00:00 2001 From: Johannes Schriewer Date: Tue, 31 Jul 2018 01:14:33 +0200 Subject: [PATCH] Bug: Server Publish messages are not correctly acknowledged --- src/subscriptions.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/subscriptions.c b/src/subscriptions.c index 2ee76ca..21ff2d0 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -54,6 +54,8 @@ void subscription_set_pending(MQTTHandle *handle, char *topic, bool pending) { void dispatch_subscription(MQTTHandle *handle, PublishPayload *payload) { SubscriptionItem *item = handle->subscriptions.items; + // TODO: Handle server Qos + while (item != NULL) { if ((item->pending == false) && (strcmp(payload->topic, item->topic) == 0)) { if (item->handler) {