Merge branch 'develop'

This commit is contained in:
Ian Craggs 2025-01-07 12:44:15 +00:00
commit c97739dad1
3 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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);
}
}
}
}

View File

@ -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