Bug: Server Publish messages are not correctly acknowledged
This commit is contained in:
parent
7c3215efcf
commit
b9c8b5c8ce
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue