Adafruit_MQTT_Library
pubsubclient
Adafruit_MQTT_Library | pubsubclient | |
---|---|---|
3 | 1 | |
560 | 431 | |
0.5% | - | |
5.4 | 0.0 | |
8 months ago | 12 months ago | |
C++ | C++ | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Adafruit_MQTT_Library
- USR-TCP232-T2 and MQTT
-
IOT Sensor Project: ESP8266 with DHT11 Sensor sends Data to MQTT
We are almost there. for adding MQTT to our program, we will again use Adafruit libraries: Adafruit_MQTT and Adafruit_MQTT_Client. There is a great official example that shows the core aspects about how to use the library. After several tries, here is the working version.
-
Choosing an MQTT library
Well maintained library from Adafruit https://github.com/adafruit/Adafruit_MQTT_Library
pubsubclient
-
Choosing an MQTT library
I got the built in LED blinking within a couple minutes. (Great Success! :D ) I haven't done as well with MQTT. :-/ I started following a tutorial at https://vimalb.github.io/IoT-ESP8266-Starter/Lesson_04/lesson.html and immediately ran into the header PubSubClient.h not found. I went into Tools -> Manage Libraries, entered "MQTT" in the search field and came up with over 30 libraries! Next I did a search for the missing header error message and that led me to https://github.com/Imroy/pubsubclient. I installed that and it gets me past the missing header, but when I try to create a PubSubClient I get error: no matching function for call to 'PubSubClient::PubSubClient()' which means there is no default constructor for this class. So I'm not sure if I have the wrong library or if it has been modified since the tutorial was written.
What are some alternatives?
pubsubclient - A client library for the Arduino Ethernet Shield that provides support for MQTT.
WiFiManager - ESP8266 WiFi Connection manager with web captive portal
MqttClient - Mqtt Client for PLCnext Control
esphome - ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
DHT-sensor-library - Arduino library for DHT11, DHT22, etc Temperature & Humidity Sensors
arduino-mqtt - MQTT library for Arduino
Adafruit_IO_Arduino - Arduino library to access Adafruit IO from WiFi, cellular, and ethernet modules.
PlatformIO - Your Gateway to Embedded Software Development Excellence :alien:
MQTTSerialPrinter - Arduino library that allows you to print to both serial and MQTT at the same time