diff --git a/src/MQTTAsync.h b/src/MQTTAsync.h index 3bcf52f1..7c5b6214 100644 --- a/src/MQTTAsync.h +++ b/src/MQTTAsync.h @@ -29,10 +29,12 @@ * @cond MQTTAsync_main * @mainpage Asynchronous MQTT client library for C (MQTTAsync) * - * © Copyright 2009, 2025 IBM Corp., Ian Craggs and others + * © Copyright 2009, 2025 IBM Corp., Ian Craggs and others. * * @brief An Asynchronous MQTT client library for C. * + * Version 1.3.14 + * * An MQTT client application connects to MQTT-capable servers. * A typical client is responsible for collecting information from a telemetry * device and publishing the information to the server. It can also subscribe diff --git a/src/MQTTAsyncUtils.c b/src/MQTTAsyncUtils.c index 85158b62..c084a11e 100644 --- a/src/MQTTAsyncUtils.c +++ b/src/MQTTAsyncUtils.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2024 IBM Corp., Ian Craggs and others + * Copyright (c) 2009, 2025 IBM Corp., Ian Craggs and others * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v2.0 @@ -2378,6 +2378,10 @@ thread_return_type WINAPI MQTTAsync_receiveThread(void* n) m->c->connected = 0; /* don't send disconnect packet back */ nextOrClose(m, discrc, "Received disconnect"); } + else + { + Log(LOG_ERROR, -1, "An unexpected packet type %u has been received", pack->header.bits.type); + } } } } diff --git a/src/MQTTClient.h b/src/MQTTClient.h index b5879108..c8a4de35 100644 --- a/src/MQTTClient.h +++ b/src/MQTTClient.h @@ -45,6 +45,8 @@ * * @brief An MQTT client library in C. * + * Version 1.3.14 + * * These pages describe the original more synchronous API which might be * considered easier to use. Some of the calls will block. For the new * totally asynchronous API where no calls block, which is especially suitable