AdafruitIO and ESP8266WiFiMulti?

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
tskunka
 
Posts: 18
Joined: Fri Dec 06, 2013 11:17 pm

AdafruitIO and ESP8266WiFiMulti?

Post by tskunka »

OK, I am using ESP8266WiFiMulti library to have my Huzzah connect to any of a list of SSIDs that I frequent.
This works great. Now, I want to integrate AdafruitIO which I have worked with a bit in the past.
So...the Adafruit library wants the IO_USERNAME, IO_KEY, WIFI_SSID, and WIFI_PASS. It wants to manage the WiFi AND the IO.
I'm already connecting fine to WiFi..don't want to use the Adafruit WiFi so I can keep the slick multi-network thing going.
How do I use the ESP8266WiFiMulti library to manage the connection and still use AdafruitIO???
I'm at a loss...thanks for the help

User avatar
jwcooper
 
Posts: 1004
Joined: Tue May 01, 2012 9:08 pm

Re: AdafruitIO and ESP8266WiFiMulti?

Post by jwcooper »

You could use the Adafruit MQTT library directly.

Example here:
https://github.com/adafruit/Adafruit_MQ ... sp8266.ino

Just swap out the ESP8266WiFi for your multi setup, and it might work OK.

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”