dreed47 / WifiMQTTManager

ESP32/ESP8266 library for managing your IoT devices.
GNU General Public License v3.0
82 stars 33 forks source link

Allow Optional Credentials for Adafruit IO #10

Closed kriffe closed 5 years ago

kriffe commented 5 years ago

It would be very helpfull to be able to use mqtt servers like Adafruit IO where you require a username and a key to gain access to a set of feeds. Would this be possible to extend in the UI and behind the scenes perhaps?

https://io.adafruit.com

Working credentials when PubSub is beeing used directly: image

kriffe commented 5 years ago

I suspect its an extention on this particular row https://github.com/dreed47/WifiMQTTManager/blob/12cc294af4357aa97dc3a13da5122a60ce42dc3d/src/WiFiMQTTManager.cpp#L154

kriffe commented 5 years ago

Hard coded topics will stop this from beeing compatible. _registerDevice() and _subscribeToServices() have calls that will not be compatible with Adafruit IO.

Suggestion to switch the input from server and port to username + key instead.