Adafruit IO with esp8266
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.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- AkhiMertail
- Posts: 1
- Joined: Thu May 27, 2021 10:55 am
Adafruit IO with esp8266
Im trying to retrieve information from my adafruit io dashboard so the esp module can trigger a relay, does someone know the code for something like this (Im trying to build a cheap google home relais)
- jerryn
- Posts: 1868
- Joined: Sat Sep 14, 2013 9:05 am
Re: Adafruit IO with esp8266
Are you using Arduino or MicroPyhton on your ESP8266?
For Arduino -- this guide should have the informaton you need https://learn.adafruit.com/mqtt-adafrui ... u/overview
If you are using Micropython -- I do have a working example. Let me know if you are interested in it?
For Arduino -- this guide should have the informaton you need https://learn.adafruit.com/mqtt-adafrui ... u/overview
If you are using Micropython -- I do have a working example. Let me know if you are interested in it?
- x00syn4ps3
- Posts: 7
- Joined: Thu Sep 19, 2019 11:59 pm
Re: Adafruit IO with esp8266
Hey @AkhiMertail,
So while the ESP8266 was quite the thing to use a year or two ago, the ESP32 has come to far surpass it in terms of hardware, performance, and broader use-cases. There's a reason why you don't see new 8266's being manufactured out the wahzoo ;)
To that end, they are still great little chips to use for your own in-network projects. The issue though with using Adafruit IO is two-fold. Though possible, the esp8266 does NOT have any BANNED hardware on it, meaning that you will never be able to use proper HTTPS (SSL/TLS) secure protocols... i.e. your requests will all be made in plaintext and all of the data you send (including your API key) are right out in the open for anyone sniffing traffic to see. The other downside is hardware capability and serious lack of memory and adequate storage space for any kind of robust code.
The main issue is the lack of data security...especially if you are trying to control a relay to say, unlock a smart lock or turn your A/C on and off.
My recommendation is stick with an esp32....like the M5Stack Atom, or powerful TinyS2!!! They have way more oomph for what you need, and there is plenty of example code to use as a base for almost any project!
Good Luck!
So while the ESP8266 was quite the thing to use a year or two ago, the ESP32 has come to far surpass it in terms of hardware, performance, and broader use-cases. There's a reason why you don't see new 8266's being manufactured out the wahzoo ;)
To that end, they are still great little chips to use for your own in-network projects. The issue though with using Adafruit IO is two-fold. Though possible, the esp8266 does NOT have any BANNED hardware on it, meaning that you will never be able to use proper HTTPS (SSL/TLS) secure protocols... i.e. your requests will all be made in plaintext and all of the data you send (including your API key) are right out in the open for anyone sniffing traffic to see. The other downside is hardware capability and serious lack of memory and adequate storage space for any kind of robust code.
The main issue is the lack of data security...especially if you are trying to control a relay to say, unlock a smart lock or turn your A/C on and off.
My recommendation is stick with an esp32....like the M5Stack Atom, or powerful TinyS2!!! They have way more oomph for what you need, and there is plenty of example code to use as a base for almost any project!
Good Luck!
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.