Coder Social home page Coder Social logo

Comments (20)

knolleary avatar knolleary commented on May 29, 2024

As you saw on SO, there is already a fork of the library that supports the CC3000.

I don't own a cc3000 so I'm not familiar with the differences, nor able to test any changes.

That said, I would be interested to see how feasible it is.

from pubsubclient.

prologic avatar prologic commented on May 29, 2024

I would be too. Since I do own one
perhaps you could help me get it working
against your library? The hack is nice enough
but as it's a fork, it's incompatible with any
changes you make to PubSubClient in future :/

cheers
James

James Mills / prologic

E: [email protected]
W: prologic.shortcircuit.net.au

On Sun, Apr 20, 2014 at 6:03 PM, knolleary [email protected] wrote:

As you saw on SOhttp://stackoverflow.com/questions/22292692/mqtt-for-arduino-cc-3000/22311378?noredirect=1#comment35449574_22311378,
there is already a fork of the library that supports the CC3000.

I don't own a cc3000 so I'm not familiar with the differences, nor able to
test any changes.

That said, I would be interested to see how feasible it is.


Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-40890126
.

from pubsubclient.

knolleary avatar knolleary commented on May 29, 2024

From a quick look it appears Adafruit_CC3000_Client does not extend the standard Client.h which is why you can't use it with this library as-is.

I wonder if a better approach would be to create an client shim that implements Client.h and drives the CC3000's client api under the covers.

It would be worth getting @justinribeiro or @nathanchantrell to comment.

from pubsubclient.

prologic avatar prologic commented on May 29, 2024

Sounds like a good idea to me.

This is essentially the Adapter Pattern (but in C).

I woudln't be suitable for this task hwoever as
I primarily have a lot of experience with higher level
languages such as python :)

cheers
James

James Mills / prologic

E: [email protected]
W: prologic.shortcircuit.net.au

On Sun, Apr 20, 2014 at 7:28 PM, knolleary [email protected] wrote:

From a quick look it appears Adafruit_CC3000_Clienthttps://github.com/adafruit/Adafruit_CC3000_Library/blob/master/Adafruit_CC3000.h#L78does not extend the standard Client.h which is why you can't use it with
this library as-is.

I wonder if a better approach would be to create an client shim that
implements Client.h and drives the CC3000's client api under the covers.

It would be worth getting @justinribeirohttps://github.com/justinribeiroor
@nathanchantrell https://github.com/nathanchantrell to comment.


Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-40891255
.

from pubsubclient.

justinribeiro avatar justinribeiro commented on May 29, 2024

My CC3000 fork was done for a very specific test case in like an hour honestly, but it does work and is stable. The thing that I've found unstable is the CC3000 device/lib; it's been really hit or miss for me, PubSub client or not.

A client shim was originally my plan, but I was really short on time. If it looks like that's of interest to folks, I can spend some time next week, work it out, test it, and send the pull request. I still have six or so of the CC3000's + Uno's at the office, so I'm not lacking test devices at the moment.

from pubsubclient.

prologic avatar prologic commented on May 29, 2024

It would defiantely be of interest to me
and anyone that uses TinyDuino from
https://tiny-circuits.com/

Their Tiny WIFI Shield is based off a CC3000 ship.

cheers
James

James Mills / prologic

E: [email protected]
W: prologic.shortcircuit.net.au

On Mon, Apr 21, 2014 at 1:14 PM, Justin Ribeiro [email protected]:

My CC3000 fork was done for a very specific test case in like an hour
honestly, but it does work and is stable. The thing that I've found
unstable is the CC3000 device/lib; it's been really hit or miss for me,
PubSub client or not.

A client shim was originally my plan, but I was really short on time. If
it looks like that's of interest to folks, I can spend some time next week,
work it out, test it, and send the pull request. I still have six or so of
the CC3000's + Uno's at the office, so I'm not lacking test devices at the
moment.


Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-40913367
.

from pubsubclient.

jacobrosenthal avatar jacobrosenthal commented on May 29, 2024

I've pull requested adafruit with no luck. Ive been testing Sparkfun's new CC3000 which properly implements Client for another project and it should work here as well
https://github.com/sparkfun/SFE_CC3000_Library

from pubsubclient.

prologic avatar prologic commented on May 29, 2024

Amazing :) Two different libraries for the same chip
sigh :)

James Mills / prologic

E: [email protected]
W: prologic.shortcircuit.net.au

On Tue, Jul 1, 2014 at 2:26 PM, Jacob Rosenthal [email protected]
wrote:

I've pull requested adafruit with no luck. Ive been testing Sparkfun's new
CC3000 which properly implements Client for another project and it should
work here as well
https://github.com/sparkfun/SFE_CC3000_Library


Reply to this email directly or view it on GitHub
#40 (comment)
.

from pubsubclient.

prologic avatar prologic commented on May 29, 2024

@jacobrosenthal So the Sparkfun library works just as well as the Adafruit one for the CC3000 chip only with better Client.h compatibility? If I understand your statement correctly it should also work with this PubSub library too? :)

from pubsubclient.

jacobrosenthal avatar jacobrosenthal commented on May 29, 2024

Yessir. Though I'll note we're talking over there about an issue with the
adafruit shield not currently working, while Ive been using the breakout
successfully. Im confident itll get patched.

On Thu, Jul 10, 2014 at 2:20 PM, James Mills [email protected]
wrote:

@jacobrosenthal https://github.com/jacobrosenthal So the Sparkfun
library works just as well as the Adafruit one for the CC3000 chip only
with better Client.h compatibility? If I understand your statement
correctly it should also work with this PubSub library too? :)


Reply to this email directly or view it on GitHub
#40 (comment)
.

from pubsubclient.

prologic avatar prologic commented on May 29, 2024

Thanks for the update! Can you link that adafruit issue?
On Jul 11, 2014 7:30 AM, "Jacob Rosenthal" [email protected] wrote:

Yessir. Though I'll note we're talking over there about an issue with the
adafruit shield not currently working, while Ive been using the breakout
successfully. Im confident itll get patched.

On Thu, Jul 10, 2014 at 2:20 PM, James Mills [email protected]
wrote:

@jacobrosenthal https://github.com/jacobrosenthal So the Sparkfun
library works just as well as the Adafruit one for the CC3000 chip only
with better Client.h compatibility? If I understand your statement
correctly it should also work with this PubSub library too? :)


Reply to this email directly or view it on GitHub
<
https://github.com/knolleary/pubsubclient/issues/40#issuecomment-48665980>

.


Reply to this email directly or view it on GitHub
#40 (comment)
.

from pubsubclient.

jacobrosenthal avatar jacobrosenthal commented on May 29, 2024

sparkfun/SFE_CC3000_Library#1

On Thu, Jul 10, 2014 at 2:38 PM, James Mills [email protected]
wrote:

Thanks for the update! Can you link that adafruit issue?
On Jul 11, 2014 7:30 AM, "Jacob Rosenthal" [email protected]
wrote:

Yessir. Though I'll note we're talking over there about an issue with
the
adafruit shield not currently working, while Ive been using the breakout
successfully. Im confident itll get patched.

On Thu, Jul 10, 2014 at 2:20 PM, James Mills [email protected]
wrote:

@jacobrosenthal https://github.com/jacobrosenthal So the Sparkfun
library works just as well as the Adafruit one for the CC3000 chip
only
with better Client.h compatibility? If I understand your statement
correctly it should also work with this PubSub library too? :)


Reply to this email directly or view it on GitHub
<

https://github.com/knolleary/pubsubclient/issues/40#issuecomment-48665980>

.


Reply to this email directly or view it on GitHub
<
https://github.com/knolleary/pubsubclient/issues/40#issuecomment-48667167>

.


Reply to this email directly or view it on GitHub
#40 (comment)
.

from pubsubclient.

prologic avatar prologic commented on May 29, 2024

Thanks :) I'll try the SFE_CC3000 library out this weekend. I have the following:

from pubsubclient.

jwcooper avatar jwcooper commented on May 29, 2024

Just a note, this library is now compatible with the Adafruit CC3000 library. The pull request was merged in. Thanks for the great library!

adafruit/Adafruit_CC3000_Library#74

from pubsubclient.

knolleary avatar knolleary commented on May 29, 2024

@jwcooper that's excellent - thanks for letting me know.

I think we can close this issue then :)

from pubsubclient.

prologic avatar prologic commented on May 29, 2024

Wow this is amazing! Has anyone tried this yet?

from pubsubclient.

jwcooper avatar jwcooper commented on May 29, 2024

It works just fine for pub/sub as long as you use the domain constructor. I slightly modified the library to support connecting with:

uint32_t ip = cc3000.IP2U32(192, 168, 1, 1);

That's used in the client.connect() of the Adafruit CC3000 library. One of the libraries just needs to be slightly modified someday to support connecting with IP2U32() or:

byte server_ip[] = { 192, 168, 1, 1 };

from pubsubclient.

prologic avatar prologic commented on May 29, 2024

Link to your fork?

James Mills / prologic

E: [email protected]
W: prologic.shortcircuit.net.au

On Mon, Oct 13, 2014 at 1:17 AM, Justin Cooper [email protected]
wrote:

It works just fine for pub/sub as long as you use the domain constructor.
I slightly modified the library to support connecting with:

uint32_t ip = cc3000.IP2U32(192, 168, 1, 1);

That's used in the client.connect() of the Adafruit CC3000 library. One of
the libraries just needs to be slightly modified someday to support
connecting with or the previous IP2U32():

byte server_ip[] = { 192, 168, 1, 1 };


Reply to this email directly or view it on GitHub
#40 (comment)
.

from pubsubclient.

jwcooper avatar jwcooper commented on May 29, 2024

@therealprologic https://github.com/jwcooper/pubsubclient/tree/master/PubSubClient

It was just a quick hack to get it working with the IP2U32() method for a project I'm working on.

from pubsubclient.

prologic avatar prologic commented on May 29, 2024

Thanks :)

James Mills / prologic

E: [email protected]
W: prologic.shortcircuit.net.au

On Tue, Oct 14, 2014 at 3:31 AM, Justin Cooper [email protected]
wrote:

@therealprologic https://github.com/therealprologic
https://github.com/jwcooper/pubsubclient/tree/master/PubSubClient

It was just a quick hack to get it working with the IP2U32() method for a
project I'm working on.


Reply to this email directly or view it on GitHub
#40 (comment)
.

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.