A version of pubsubclient library with support for the Adafruit CC3000 library.
Clone or download
Pull request Compare This branch is 5 commits ahead of justinribeiro:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


PubSubClient with AdaFruit CC3000 library support

This is hacked up version of Nicholas O'Leary's PubSubClient that works with the AdaFruit CC3000 breakout board (http://learn.adafruit.com/adafruit-cc3000-wifi/overview) or the Wicked Device WildFire (http://shop.wickeddevice.com/product/wildfire/) and the AdaFruit CC3000 library (https://github.com/adafruit/Adafruit_CC3000_Library).

Publish and subscribe are working.


To see how to get started, check the simple temperature publish example: uno_cc3000_mqtt_publish.ino

Or for the WildFire: wildfire_cc3000_mqtt_publish.ino

The biggest difference is that this version will only take an IP address and requires you pass both the Adafruit_CC3000 and Adafruit_CC3000_Client (as opposed to say just the YunClient or EthernetClient in the regular version of the lib).

Warning: this library won't work for other ethernet/wifi devices

This version of PubSubClient is stripped down to the barebones to make it work with AdaFruit's CC3000 library. If you have other wifi or Ethernet shields, this version WILL NOT work.