Coder Social home page Coder Social logo

Comments (2)

davidmonro avatar davidmonro commented on May 28, 2024

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.

knolleary avatar knolleary commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.