Skip to content

Commit

Permalink
Merge pull request #3 from MathewHDYT/master
Browse files Browse the repository at this point in the history
Fix conflicts with original library
  • Loading branch information
imbeacon authored Nov 23, 2023
2 parents 0bcddc9 + 5b3177f commit 1bec7ad
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Full API documentation is available here: https://pubsubclient.knolleary.net

- It can only publish QoS 0 messages. It can subscribe at QoS 0 or QoS 1.
- The maximum message size, including header, is **256 bytes** by default. This
is configurable via `MQTT_MAX_PACKET_SIZE` in `TBPubSubClient.h` or can be changed
by calling `TBPubSubClient::setBufferSize(size)`.
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 `TBPubSubClient.h` or can be changed by calling
`TBPubSubClient::setKeepAlive(keepAlive)`.
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 `TBPubSubClient.h`.
changing value of `MQTT_VERSION` in `PubSubClient.h`.


## Compatible Hardware
Expand All @@ -42,7 +42,7 @@ boards and shields, including:
- Arduino YUN – use the included `YunClient` in place of `EthernetClient`, and
be sure to do a `Bridge.begin()` first
- Arduino WiFi Shield - if you want to send packets > 90 bytes with this shield,
enable the `MQTT_MAX_TRANSFER_SIZE` define in `TBPubSubClient.h`.
enable the `MQTT_MAX_TRANSFER_SIZE` define in `PubSubClient.h`.
- Sparkfun WiFly Shield – [library](https://github.com/dpslwk/WiFly)
- TI CC3000 WiFi - [library](https://github.com/sparkfun/SFE_CC3000_Library)
- Intel Galileo/Edison
Expand Down
2 changes: 1 addition & 1 deletion examples/mqtt_auth/mqtt_auth.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <SPI.h>
#include <Ethernet.h>
#include <TBPubSubClient.h>
#include <PubSubClient.h>

// Update these with values suitable for your network.
byte mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
Expand Down
2 changes: 1 addition & 1 deletion examples/mqtt_basic/mqtt_basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include <SPI.h>
#include <Ethernet.h>
#include <TBPubSubClient.h>
#include <PubSubClient.h>

// Update these with values suitable for your network.
byte mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
Expand Down
2 changes: 1 addition & 1 deletion examples/mqtt_esp8266/mqtt_esp8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

#include <ESP8266WiFi.h>
#include <TBPubSubClient.h>
#include <PubSubClient.h>

// Update these with values suitable for your network.

Expand Down
2 changes: 1 addition & 1 deletion examples/mqtt_large_message/mqtt_large_message.ino
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#include <ESP8266WiFi.h>
#include <TBPubSubClient.h>
#include <PubSubClient.h>

// Update these with values suitable for your network.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <SPI.h>
#include <Ethernet.h>
#include <TBPubSubClient.h>
#include <PubSubClient.h>

// Update these with values suitable for your network.
byte mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include <SPI.h>
#include <Ethernet.h>
#include <TBPubSubClient.h>
#include <PubSubClient.h>

// Update these with values suitable for your hardware/network.
byte mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
Expand Down
2 changes: 1 addition & 1 deletion examples/mqtt_stream/mqtt_stream.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include <SPI.h>
#include <Ethernet.h>
#include <TBPubSubClient.h>
#include <PubSubClient.h>
#include <SRAM.h>

// Update these with values suitable for your network.
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "git",
"url": "https://github.com/thingsboard/pubsubclient.git"
},
"version": "2.9.2",
"version": "2.9.3",
"exclude": "tests",
"examples": "examples/*/*.ino",
"frameworks": "arduino",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=TBPubSubClient
version=2.9.2
version=2.9.3
author=Nick O'Leary <[email protected]>
maintainer=ThingsBoard Team
sentence=A client library for MQTT messaging.
Expand Down
2 changes: 1 addition & 1 deletion src/TBPubSubClient.cpp → src/PubSubClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://knolleary.net
*/

#include "TBPubSubClient.h"
#include "PubSubClient.h"
#include "Arduino.h"

PubSubClient::PubSubClient() {
Expand Down
6 changes: 3 additions & 3 deletions src/TBPubSubClient.h → src/PubSubClient.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
TBPubSubClient.h - A simple client for MQTT.
PubSubClient.h - A simple client for MQTT.
Nick O'Leary
http://knolleary.net
*/

#ifndef TBPubSubClient_h
#define TBPubSubClient_h
#ifndef PubSubClient_h
#define PubSubClient_h

#include <Arduino.h>
#include "IPAddress.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/src/connect_spec.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "TBPubSubClient.h"
#include "PubSubClient.h"
#include "ShimClient.h"
#include "Buffer.h"
#include "BDDTest.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/src/keepalive_spec.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "TBPubSubClient.h"
#include "PubSubClient.h"
#include "ShimClient.h"
#include "Buffer.h"
#include "BDDTest.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/src/publish_spec.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "TBPubSubClient.h"
#include "PubSubClient.h"
#include "ShimClient.h"
#include "Buffer.h"
#include "BDDTest.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/src/receive_spec.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "TBPubSubClient.h"
#include "PubSubClient.h"
#include "ShimClient.h"
#include "Buffer.h"
#include "BDDTest.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/src/subscribe_spec.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "TBPubSubClient.h"
#include "PubSubClient.h"
#include "ShimClient.h"
#include "Buffer.h"
#include "BDDTest.h"
Expand Down

0 comments on commit 1bec7ad

Please sign in to comment.