0

Access Adafruit IO without managed WiFi?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Access Adafruit IO without managed WiFi?

by stevenc88 on Sun Mar 03, 2019 2:51 pm

Hi All,
I've been looking at the Adafruit IO libraries, and they seem to want to control the WiFi connection.
I have a project which already connects to WiFi. All I need is the access to the Adafruit IO server.

Is there a different class I should use when I already have the WiFi portion taken care of?

Thanks - Steven

stevenc88
 
Posts: 3
Joined: Sun Jan 27, 2019 7:33 pm

Re: Access Adafruit IO without managed WiFi?

by brubell on Mon Mar 04, 2019 11:50 am

I have a project which already connects to WiFi. All I need is the access to the Adafruit IO server.


If you already have a WiFi connect, you might want to send data to the Adafruit IO REST API (https://io.adafruit.com/api/docs/).

What hardware are you using?

brubell
 
Posts: 282
Joined: Fri Jul 17, 2015 10:33 pm

Re: Access Adafruit IO without managed WiFi?

by abachman on Mon Mar 04, 2019 11:53 am

Hi Steven,


The Adafruit_IO_Arduino library doesn't support other WiFi clients at this time. Our goal is to abstract as much of the underlying functionality as we can to make simple things easy.

If you're comfortable using another HTTP or MQTT client, you can just talk to the Adafruit IO API directly. The Adafruit_IO_Arduino library is not doing anything secret or special to allow access to IO.

The main MQTT documentation is here: https://learn.adafruit.com/welcome-to-adafruit-io/mqtt-api-documentation-2

The main HTTP documentation is here: https://io.adafruit.com/api/docs/


- Adam B.

abachman
 
Posts: 276
Joined: Mon Feb 01, 2010 12:48 pm

Re: Access Adafruit IO without managed WiFi?

by stevenc88 on Mon Mar 04, 2019 1:03 pm

Hi Adam,

abachman wrote:The Adafruit_IO_Arduino library doesn't support other WiFi clients at this time. Our goal is to abstract as much of the underlying functionality as we can to make simple things easy.


I understand and agree.

abachman wrote:
If you're comfortable using another HTTP or MQTT client, you can just talk to the Adafruit IO API directly. The Adafruit_IO_Arduino library is not doing anything secret or special to allow access to IO.


Yes, I've used the HTTP interface with some Python code. I was looking for the convenience of the Adafruit programming interface.

I would suggest as an enhancement / advanced feature to provide an interface to AdafruitIO which can use pre-existing WiFi classes. In my case I am using the Blynk library which handles the Wifi, and I want to include the AdafruitIO functionality as well.

Thanks,

-- Steven

stevenc88
 
Posts: 3
Joined: Sun Jan 27, 2019 7:33 pm

Re: Access Adafruit IO without managed WiFi?

by stevenc88 on Mon Mar 04, 2019 1:06 pm

brubell wrote:What hardware are you using?


I am using a WeMos D1 Mini (ESP8266-based), programmed through the Arduino IDE.

stevenc88
 
Posts: 3
Joined: Sun Jan 27, 2019 7:33 pm

Re: Access Adafruit IO without managed WiFi?

by brubell on Tue Mar 05, 2019 10:31 am

I would suggest as an enhancement / advanced feature to provide an interface to AdafruitIO which can use pre-existing WiFi classes. In my case I am using the Blynk library which handles the Wifi, and I want to include the AdafruitIO functionality as well.


We don't have much hardware past the PyPortal (currently, more to come!) but I wrote the Adafruit IO CircuitPython library (https://github.com/brentru/Adafruit_Cir ... AdafruitIO) to import a managed wifi class which handles HTTP requests.

You may want to look into adding a WiFi client for the Blynk library into Adafruit IO. We don't currently support this board.
-> https://github.com/adafruit/Adafruit_IO ... r/src/wifi

Check out the ESP8266 WiFi client classes as an example: https://github.com/adafruit/Adafruit_IO ... _ESP8266.h

brubell
 
Posts: 282
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.