ItKindaWorks / ESPHelper

A library to make using WiFi & MQTT on the ESP8266 easy.
GNU General Public License v3.0
327 stars 67 forks source link
arduino esp32 esp32-arduino esp8266 esp8266-arduino mqtt ota wifi

ESPHelper

A library to make using WiFi and MQTT on ESPXX platforms easy.

I wrote this library to help with my own home automation projects. It handles connecting (and reconnecting when the connection is lost) for both a wifi network and MQTT broker. When reconnecting it automatically resubscribes to subscribed topics on an MQTT broker. It is also capable of automatically hopping between different network/MQTT setups (I wrote this is mostly so that I could move from my home network to work and have my prototypes be able to connect to whatever environment was most convinient)

The library also features the ability to use the ArduinoOTA system for OTA updates. There are a number of wrapper methods for enabling/disabling OTA and changing the OTA hostname and password.

Please take a look at the examples included with this library to get an idea of how it works.

Note:

This library does requre the use of these libraries (so make sure they're installed as well!):

Useful Methods:

ToDo: