Skip to content

Commit 74c09f7

Browse files
authored
Merge pull request #226 from embhorn/rel_v1.9
wolfMQTT Release v1.9 preparation
2 parents 5c8c61c + 721c185 commit 74c09f7

9 files changed

Lines changed: 24 additions & 12 deletions

File tree

ChangeLog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11

22
## Release Notes
3+
### v1.9 (07/16/2021)
4+
* Fixes for Sensor Network client (PR #204, 214, 219)
5+
* Fixes for non-blocking (PR #205)
6+
* Fixes for multithread (PR #207, 209, 211, 218)
7+
* Fix for MQTTv5 publish response handling (PR #224, 220)
8+
* Fix subscribe return code list (PR #210)
9+
* Fix switch statement fallthrough on other toolchains (PR #225)
10+
* Add HiveMQ Cloud capability with SNI feature (PR #222)
11+
* Add ability to publish files from example client, fix chunked publish (PR# 223)
312

413
### v1.8 (02/19/2021)
514
* Fixes for non-blocking in WIN32 and large payload (PR #202)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# wolfMQTT
22

3-
This is an implementation of the MQTT Client written in C for embedded use, which supports SSL/TLS via the wolfSSL library. This library was built from the ground up to be multi-platform, space conscience and extensible. Integrates with wolfSSL to provide TLS support.
3+
This is an implementation of the MQTT Client written in C for embedded use, which supports SSL/TLS via the wolfSSL library. This library was built from the ground up to be multi-platform, space conscious and extensible. Integrates with wolfSSL to provide TLS support.
44

55

66
## Building
@@ -13,7 +13,7 @@ This is an implementation of the MQTT Client written in C for embedded use, whic
1313
4. `sudo make install`
1414

1515
Notes:
16-
* If `wolfssl` was recently installed run `sudo ldconfig` to update the linker cache.
16+
* If `wolfssl` was recently installed, run `sudo ldconfig` to update the linker cache.
1717
* Debug messages can be enabled using `--enable-debug` or `--enable-debug=verbose` (for extra logging).
1818
* For a list of build options run `./configure --help`.
1919
* The build options are generated in a file here: `wolfmqtt/options.h`.

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# wolfmqtt
2-
# Copyright (C) 2020 wolfSSL Inc.
2+
# Copyright (C) 2021 wolfSSL Inc.
33
# All right reserved.
44

55
AC_COPYRIGHT([Copyright (C) 2014-2021 wolfSSL Inc.])
6-
AC_INIT([wolfmqtt],[1.8.0],[https://github.com/wolfssl/wolfMQTT/issues],[wolfmqtt],[http://www.wolfssl.com])
6+
AC_INIT([wolfmqtt],[1.9.0],[https://github.com/wolfssl/wolfMQTT/issues],[wolfmqtt],[http://www.wolfssl.com])
77

88
AC_PREREQ([2.63])
99
AC_CONFIG_AUX_DIR([build-aux])
@@ -23,7 +23,7 @@ AC_ARG_PROGRAM
2323
AC_CONFIG_MACRO_DIR([m4])
2424
AC_CONFIG_HEADERS([src/config.h])
2525

26-
WOLFMQTT_LIBRARY_VERSION=8:0:0
26+
WOLFMQTT_LIBRARY_VERSION=9:0:0
2727
# | | |
2828
# +------+ | +---+
2929
# | | |

src/mqtt_client.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include "wolfmqtt/mqtt_client.h"
2828

2929
/* Options */
30-
//#define WOLFMQTT_DEBUG_CLIENT
3130
#ifdef WOLFMQTT_NO_STDIO
3231
#undef WOLFMQTT_DEBUG_CLIENT
3332
#endif
@@ -2613,6 +2612,8 @@ static int SN_Client_HandlePacket(MqttClient* client, SN_MsgType packet_type,
26132612
}
26142613
} /* switch (packet_type) */
26152614

2615+
(void)packet_id;
2616+
26162617
return rc;
26172618
}
26182619

src/mqtt_packet.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,10 @@ int MqttEncode_Subscribe(byte *tx_buf, int tx_buf_len,
12191219
for (i = 0; i < subscribe->topic_count; i++) {
12201220
topic = &subscribe->topics[i];
12211221
tx_payload += MqttEncode_String(tx_payload, topic->topic_filter);
1222-
*tx_payload = topic->qos;
1222+
/* Sanity check for compilers */
1223+
if (tx_payload != NULL) {
1224+
*tx_payload = topic->qos;
1225+
}
12231226
tx_payload++;
12241227
}
12251228

src/mqtt_socket.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include "wolfmqtt/mqtt_socket.h"
3737

3838
/* Options */
39-
//#define WOLFMQTT_DEBUG_SOCKET
4039
#ifdef WOLFMQTT_NO_STDIO
4140
#undef WOLFMQTT_DEBUG_SOCKET
4241
#endif

wolfmqtt/mqtt_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct _MqttClient;
5050
* \discussion If the message payload is larger than the maximum RX buffer
5151
then this callback is called multiple times.
5252
If msg_new = 1 its a new message.
53-
The topc_name and topic_name length are only valid when msg_new = 1.
53+
The topic_name and topic_name length are only valid when msg_new = 1.
5454
If msg_new = 0 then we are receiving additional payload.
5555
Each callback populates the payload in MqttMessage.buffer.
5656
The MqttMessage.buffer_len is the size of the buffer payload.

wolfmqtt/options.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* options.h.in
22
*
3-
* Copyright (C) 2006-2020 wolfSSL Inc.
3+
* Copyright (C) 2006-2021 wolfSSL Inc.
44
*
55
* This file is part of wolfMQTT.
66
*

wolfmqtt/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
extern "C" {
3535
#endif
3636

37-
#define LIBWOLFMQTT_VERSION_STRING "1.8.0"
38-
#define LIBWOLFMQTT_VERSION_HEX 0x01008000
37+
#define LIBWOLFMQTT_VERSION_STRING "1.9.0"
38+
#define LIBWOLFMQTT_VERSION_HEX 0x01009000
3939

4040
#ifdef __cplusplus
4141
}

0 commit comments

Comments
 (0)