Comments (2)
OK, its a simple fix. Looks like they made Client a pure virtual class and wrapped EthernetClient around it. Hope this is a sensible way to feed in a patch - I have no idea what I am doing with github yet :)
diff -ur ./PubSubClient/PubSubClient.cpp /home/davidm/sketchbook/libraries/PubSubClient/PubSubClient.cpp
--- ./PubSubClient/PubSubClient.cpp 2011-08-05 00:08:43.000000000 +0930
+++ /home/davidm/sketchbook/libraries/PubSubClient/PubSubClient.cpp 2011-09-12 17:34:07.000000000 +0930
@@ -5,7 +5,7 @@
*/
#include "PubSubClient.h"
-#include "Client.h"
+#include "EthernetClient.h"
#include "string.h"
PubSubClient::PubSubClient() : _client() {
diff -ur ./PubSubClient/PubSubClient.h /home/davidm/sketchbook/libraries/PubSubClient/PubSubClient.h
--- ./PubSubClient/PubSubClient.h 2011-08-05 00:08:43.000000000 +0930
+++ /home/davidm/sketchbook/libraries/PubSubClient/PubSubClient.h 2011-09-12 17:34:26.000000000 +0930
@@ -8,7 +8,7 @@
#define PubSubClient_h
#include "Ethernet.h"
-#include "Client.h"
+#include "EthernetClient.h"
#define MAX_PACKET_SIZE 128
#define KEEPALIVE 15000 // max value = 255000
@@ -33,7 +33,7 @@
class PubSubClient {
private:
- Client _client;
+ EthernetClient _client;
uint8_t buffer[MAX_PACKET_SIZE];
uint8_t nextMsgId;
long lastOutActivity;
from pubsubclient.
Hi DM,
thanks for that; I hadn't updated to beta4 yet.
Have made those changes, merged them into the master branch and gotten rid of the arduino-1.0 branch. I figure arduino-1.0 is due to be released soon enough that there is no need to keep a separate branch.
(The real reason being I accidentally put these changes into master and decided I couldn't be bothered to revert and put them in the a-1 branch - ho hum).
from pubsubclient.
Related Issues (20)
- Compatibility With New Arduino Uno R4 WiFi Board HOT 5
- Unable to receive payload greater than 65536 bytes HOT 3
- esp8266 lost connection every 30 min HOT 1
- MQTT Connect is not working for ESP32-C3-12F HOT 1
- [ESP32-S3] callback function sometimes fail within a day or a week or a month HOT 2
- Character is missing when receiving message on a topic
- connect timeout is always 5 sec HOT 2
- Reconnects every 4 hours HOT 2
- Sometimes payload are mixed up with topic. HOT 1
- Callback is not called when i am pubishing audio data in bytes.
- Intermittent delay of minutes between ESP publish and receipt by mosquitto in a pi HOT 1
- Anomolous performing when using along with I2S
- Issue while setting keep alive zero. HOT 2
- Bug in PubSubClient::connected HOT 1
- Retain Flag not working HOT 1
- receiving arbitrarily large messages HOT 1
- Use hostname for the MQTT broker IP HOT 2
- Library when subscribing to third topic won't connect to ethernet
- Connecting and running smoothly on mobile hotspot while rc=-2 on fiber broadband wifi router
- Future of this module HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pubsubclient.