From 2d228f2f862a95846c65a8518c79f48dfc8f188c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 20 May 2020 01:40:39 +0100 Subject: [PATCH] Publish v2.8 --- CHANGES.txt | 9 +++++++++ LICENSE.txt | 2 +- README.md | 3 ++- keywords.txt | 3 +++ library.json | 2 +- library.properties | 2 +- 6 files changed, 17 insertions(+), 4 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index ff4da62a..e23d5315 100755 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,12 @@ +2.8 + * Add setBufferSize() to override MQTT_MAX_PACKET_SIZE + * Add setKeepAlive() to override MQTT_KEEPALIVE + * Add setSocketTimeout() to overide MQTT_SOCKET_TIMEOUT + * Added check to prevent subscribe/unsubscribe to empty topics + * Declare wifi mode prior to connect in ESP example + * Use `strnlen` to avoid overruns + * Support pre-connected Client objects + 2.7 * Fix remaining-length handling to prevent buffer overrun * Add large-payload API - beginPublish/write/publish/endPublish diff --git a/LICENSE.txt b/LICENSE.txt index 217df35c..12c1689e 100755 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2008-2015 Nicholas O'Leary +Copyright (c) 2008-2020 Nicholas O'Leary Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.md b/README.md index 2751cb52..2e131718 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,8 @@ Full API documentation is available here: https://pubsubclient.knolleary.net is configurable via `MQTT_MAX_PACKET_SIZE` in `PubSubClient.h` or can be changed by calling `PubSubClient::setBufferSize(size)`. - The keepalive interval is set to 15 seconds by default. This is configurable - via `MQTT_KEEPALIVE` in `PubSubClient.h`. + via `MQTT_KEEPALIVE` in `PubSubClient.h` or can be changed by calling + `PubSubClient::setKeepAlive(keepAlive)`. - The client uses MQTT 3.1.1 by default. It can be changed to use MQTT 3.1 by changing value of `MQTT_VERSION` in `PubSubClient.h`. diff --git a/keywords.txt b/keywords.txt index 1ee23d0f..960a033f 100755 --- a/keywords.txt +++ b/keywords.txt @@ -27,6 +27,9 @@ setServer KEYWORD2 setCallback KEYWORD2 setClient KEYWORD2 setStream KEYWORD2 +setKeepAlive KEYWORD2 +setBufferSize KEYWORD2 +setSocketTimeout KEYWORD2 ####################################### # Constants (LITERAL1) diff --git a/library.json b/library.json index ab2f0e61..c0d7bae2 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "type": "git", "url": "https://github.com/knolleary/pubsubclient.git" }, - "version": "2.7", + "version": "2.8", "exclude": "tests", "examples": "examples/*/*.ino", "frameworks": "arduino", diff --git a/library.properties b/library.properties index 1ae97882..e47ffe92 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=PubSubClient -version=2.7 +version=2.8 author=Nick O'Leary maintainer=Nick O'Leary sentence=A client library for MQTT messaging.