Skip to content

Commit

Permalink
Merge pull request #56 from dgarske/rel1dot0
Browse files Browse the repository at this point in the history
wolfMQTT v1.0 release prep
  • Loading branch information
JacobBarthelmeh authored Apr 3, 2018
2 parents fa607e6 + fbf2aa1 commit ed943a9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ We setup an AWS IoT endpoint and testing device certificate for testing. The AWS

## Release Notes

### v1.0 (04/03/18)
* Fixed `MqttClient_WaitMessage` to use provided `timeout_ms` arg. With TLS enabled it was using the `MqttClient_Init` `cmd_timeout_ms` arg. Thanks PeterL for that report.
* Fixed cast warnings when building with Visual Studio.
* Cleanup socket code to use existing `SOCK_CLOSE` for `NetDisconnect`.
* Cleanup to move the `sockRc` into the `MqttTls` struct, since it only applies when TLS is enabled.
* Added configure option to disable error strings for reduced code size (`./configure disable-errorstrings` or `#define WOLFMQTT_NO_ERROR_STRINGS`).
* Added support for ChibiOS.

### v0.14 (11/22/17)
* Fixed non-blocking connect to check for `EINPROGRESS` for all platforms (not just Harmony).
* Fixed buffer overflow position check on read/write.
Expand Down
22 changes: 12 additions & 10 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2016 wolfSSL Inc.
# All right reserved.

AC_INIT([wolfmqtt],[0.14.0],[https://github.com/wolfssl/wolfMQTT/issues],[wolfmqtt],[http://www.wolfssl.com])
AC_INIT([wolfmqtt],[1.0.0],[https://github.com/wolfssl/wolfMQTT/issues],[wolfmqtt],[http://www.wolfssl.com])

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

WOLFMQTT_LIBRARY_VERSION=1:2:0
WOLFMQTT_LIBRARY_VERSION=2:0:0
# | | |
# +------+ | +---+
# | | |
Expand Down Expand Up @@ -69,11 +69,14 @@ AC_CHECK_LIB(network,socket)
DEBUG_CFLAGS="-g -O0"
DEBUG_CPPFLAGS="-DDEBUG -DDEBUG_WOLFMQTT"

# Optimizations
OPTIMIZE_CFLAGS="-O2"

AX_DEBUG
AS_IF([test "x$ax_enable_debug" = "xyes"],
[AM_CFLAGS="$DEBUG_CFLAGS $AM_CFLAGS"
AM_CPPFLAGS="$DEBUG_CPPFLAGS $AM_CPPFLAGS"],
[AM_CFLAGS="$AM_CFLAGS -O2"
[AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_CFLAGS"
AM_CPPFLAGS="-DNDEBUG $AM_CFLAGS"])

AX_PTHREAD([AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"])
Expand All @@ -92,7 +95,7 @@ fi
# TLS Support with wolfSSL
# Examples, used to disable examples
AC_ARG_ENABLE([tls],
[ --enable-tls Enable TLS support with wolfSSL (default: enabled)],
[AS_HELP_STRING([--enable-tls],[Enable TLS support with wolfSSL (default: enabled)])],
[ ENABLED_TLS=$enableval ],
[ ENABLED_TLS=yes ]
)
Expand All @@ -102,14 +105,13 @@ then
AM_CPPFLAGS="$AM_CPPFLAGS -DENABLE_MQTT_TLS"

TAO_REQUIRE_LIBWOLFSSL
AM_CPPFLAGS="$AM_CPPFLAGS -DDHAVE_WOLFSSL_OPTIONS -DHAVE_CYASSL_OPTIONS"
fi
AM_CONDITIONAL([HAVE_LIBWOLFSSL], [test "x$ENABLED_TLS" = "xyes"])


# Non-Blocking support
AC_ARG_ENABLE([nonblock],
[ --enable-nonblock Enable non-blocking support (default: disabled)],
[AS_HELP_STRING([--enable-nonblock],[Enable non-blocking support (default: disabled)])],
[ ENABLED_NONBLOCK=$enableval ],
[ ENABLED_NONBLOCK=no ]
)
Expand All @@ -122,7 +124,7 @@ fi

# Timeout support
AC_ARG_ENABLE([timeout],
[ --enable-timeout Enable timeout support (default: enabled)],
[AS_HELP_STRING([--enable-timeout],[Enable timeout support (default: enabled)])],
[ ENABLED_TIMEOUT=$enableval ],
[ ENABLED_TIMEOUT=yes ]
)
Expand All @@ -134,7 +136,7 @@ fi

# Examples
AC_ARG_ENABLE([examples],
[ --enable-examples Enable Examples (default: enabled)],
[AS_HELP_STRING([--enable-examples],[Enable examples (default: enabled)])],
[ ENABLED_EXAMPLES=$enableval ],
[ ENABLED_EXAMPLES=yes ]
)
Expand All @@ -144,7 +146,7 @@ AM_CONDITIONAL([BUILD_EXAMPLES], [test "x$ENABLED_EXAMPLES" = "xyes"])

# Error strings
AC_ARG_ENABLE([errorstrings],
[ --enable-errorstrings Enable Error Strings (default: enabled)],
[AS_HELP_STRING([--enable-errorstrings],[Enable error strings (default: enabled)])],
[ ENABLED_ERROR_STRINGS=$enableval ],
[ ENABLED_ERROR_STRINGS=yes ]
)
Expand All @@ -157,7 +159,7 @@ fi

# STDIN / FGETS for examples
AC_ARG_ENABLE([stdincap],
[ --enable-stdincap Enable examplesSTDIN capture (default: enabled)],
[AS_HELP_STRING([--enable-stdincap],[Enable examples STDIN capture (default: enabled)])],
[ ENABLED_STDINCAP=$enableval ],
[ ENABLED_STDINCAP=yes ]
)
Expand Down
4 changes: 2 additions & 2 deletions wolfmqtt/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
extern "C" {
#endif

#define LIBWOLFMQTT_VERSION_STRING "0.14.0"
#define LIBWOLFMQTT_VERSION_HEX 0x00014000
#define LIBWOLFMQTT_VERSION_STRING "1.0.0"
#define LIBWOLFMQTT_VERSION_HEX 0x01000000

#ifdef __cplusplus
}
Expand Down

0 comments on commit ed943a9

Please sign in to comment.