Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wolfMQTT Release v1.11.0 preparation #267

Merged
merged 1 commit into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@

## Release Notes
### v1.11 (1/7/2022)
* Return correct error code in SN_Client_Connect (PR #268)
* Removing unsupported TLS and SNI options in sn-client (PR #266)
* Fixes for multithreading with non-blocking (PR #252)
* Doxygen work removing depreciated command and fixing other warnings (PR #264)
* Fix overwriting TLS error in connect (PR #259)
* Add GitHub Actions (PR #256 #260 #263)
* Fix wm_Sem on Windows (PR #255 #261)
* Fix scripts for host without mosquitto (PR #257 #265)
* Trim whitespace and convert tab to spaces (PR #251)
* Refactor of write length (PR #250)
* Fixes for publish edge cases (PR #248)
* Remove unused sub_id element, add support for local test broker (PR #249)
* Fix to make sure MqttClient_DecodePacket called in all cases (PR #246)

* Known bug with multithread and without nonblocking enabled in this release.

### v1.10 (11/2/2021)
* Improve FALL_THROUGH macro logic for XC32. (PR #227)
* Fix potential NULL printf in MqttSocket_Connect with verbose debug enabled. (PR #229)
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ We setup an AWS IoT endpoint and testing device certificate for testing. The AWS

### Watson IoT Example
dgarske marked this conversation as resolved.
Show resolved Hide resolved
This example enables the wolfMQTT client to connect to the IBM Watson Internet of Things (WIOT) Platform. The WIOT Platform has a limited test broker called "Quickstart" that allows non-secure connections to exercise the component. The example is located in `/examples/wiot/`. Works with MQTT v5 support enabled.
**NOTE** The WIOT QuickStart broker is no longer available. The demo may still be useful for users of IBM Watson IOT.

### MQTT-SN Example
The Sensor Network client implements the MQTT-SN protocol for low-bandwidth networks. There are several differences from MQTT, including the ability to use a two byte Topic ID instead the full topic during subscribe and publish. The SN client requires an MQTT-SN gateway. The gateway acts as an intermediary between the SN clients and the broker. This client was tested with the Eclipse Paho MQTT-SN Gateway, which connects by default to the public Eclipse broker, much like our wolfMQTT Client example. The address of the gateway must be configured as the host. The example is located in `/examples/sn-client/`.
Expand Down Expand Up @@ -226,7 +227,7 @@ wolfMQTT client library has been tested with the following brokers:
The initially supported version with full specification support for all features and packets type such as:
* QoS 0-2
* Last Will and Testament (LWT)
* Client examples for: AWS, Azure IoT, IBM Watson, Firmware update, non-blocking and generic.
* Client examples for: AWS, Azure IoT, Firmware update, non-blocking and generic.

### MQTT v5.0 Specification Support

Expand Down Expand Up @@ -257,8 +258,6 @@ The v5 enabled wolfMQTT client was tested with the following MQTT v5 brokers:
** `./examples/mqttclient/mqttclient -h localhost`
* HiveMQ Cloud
** `./examples/mqttclient/mqttclient -h 833f87e253304692bd2b911f0c18dba1.s1.eu.hivemq.cloud -t -S -u wolf1 -w NEZjcm7i8eRjFKF -p 8883`
* Watson IoT Quickserver
** `./examples/wiot/wiot`

### MQTT Sensor Network (MQTT-SN) Specification Support

Expand Down
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# wolfmqtt
# Copyright (C) 2021 wolfSSL Inc.
# Copyright (C) 2022 wolfSSL Inc.
# All right reserved.

AC_COPYRIGHT([Copyright (C) 2014-2021 wolfSSL Inc.])
AC_INIT([wolfmqtt],[1.10.0],[https://github.com/wolfssl/wolfMQTT/issues],[wolfmqtt],[http://www.wolfssl.com])
AC_COPYRIGHT([Copyright (C) 2014-2022 wolfSSL Inc.])
AC_INIT([wolfmqtt],[1.11.0],[https://github.com/wolfssl/wolfMQTT/issues],[wolfmqtt],[http://www.wolfssl.com])

AC_PREREQ([2.63])
AC_CONFIG_AUX_DIR([build-aux])
Expand All @@ -23,7 +23,7 @@ AC_ARG_PROGRAM
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([src/config.h])

WOLFMQTT_LIBRARY_VERSION=9:1:0
WOLFMQTT_LIBRARY_VERSION=10:0:0
# | | |
# +------+ | +---+
# | | |
Expand Down
2 changes: 1 addition & 1 deletion examples/aws/awsiot.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* awsiot.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/aws/awsiot.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* awsiot.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/azure/azureiothub.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* azureiothub.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/azure/azureiothub.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* azureiothub.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/firmware/fwclient.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* fwclient.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/firmware/fwclient.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* fwclient.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/firmware/fwpush.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* fwpush.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/firmware/fwpush.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* fwpush.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/mqttclient/mqttclient.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqttclient.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/mqttclient/mqttclient.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqttclient.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/mqttexample.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqttexample.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/mqttexample.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqttexample.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/mqttnet.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqttnet.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/mqttnet.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqttnet.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/mqttsimple/mqttsimple.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqttsimple.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/mqttsimple/mqttsimple.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqttsimple
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/mqttuart.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqttuart.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/multithread/multithread.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* multithread.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/multithread/multithread.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* multithread.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/nbclient/nbclient.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* nbclient.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/nbclient/nbclient.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* nbclient.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/sn-client/sn-client.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* sn-client.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/sn-client/sn-client.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* sn-client.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/sn-client/sn-client_qos-1.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* sn-client_qos-1.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/sn-client/sn-multithread.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* sn-multithread.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/wiot/wiot.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* wiot.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/wiot/wiot.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* wiot.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
4 changes: 2 additions & 2 deletions scripts/client.test
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ do_cleanup() {

def_args="-T -C 2000"

# Wait 1 secs for other tests to conclude
sleep 1
# Wait 2 secs for other tests to conclude
sleep 2

# Check for mosquitto
if command -v mosquitto
Expand Down
2 changes: 1 addition & 1 deletion src/mqtt_client.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqtt_client.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion src/mqtt_packet.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqtt_packet.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion src/mqtt_socket.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqtt_socket.c
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion wolfmqtt/mqtt_client.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqtt_client.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion wolfmqtt/mqtt_packet.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqtt_packet.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion wolfmqtt/mqtt_socket.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqtt_socket.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion wolfmqtt/mqtt_types.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* mqtt_types.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion wolfmqtt/options.h.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* options.h.in
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
6 changes: 3 additions & 3 deletions wolfmqtt/version.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* version.h.in
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down Expand Up @@ -34,8 +34,8 @@
extern "C" {
#endif

#define LIBWOLFMQTT_VERSION_STRING "1.10.0"
#define LIBWOLFMQTT_VERSION_HEX 0x01010000
#define LIBWOLFMQTT_VERSION_STRING "1.11.0"
#define LIBWOLFMQTT_VERSION_HEX 0x01011000

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion wolfmqtt/version.h.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* version.h.in
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down
2 changes: 1 addition & 1 deletion wolfmqtt/visibility.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* visibility.h
*
* Copyright (C) 2006-2021 wolfSSL Inc.
* Copyright (C) 2006-2022 wolfSSL Inc.
*
* This file is part of wolfMQTT.
*
Expand Down