Adafruit_MQTT_Library
pubsubclient
Adafruit_MQTT_Library | pubsubclient | |
---|---|---|
3 | 16 | |
560 | 3,734 | |
0.5% | - | |
5.4 | 0.0 | |
8 months ago | 5 days 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
-
Using ESP32 for contacting server
If you're after example code, take a look in https://github.com/knolleary/pubsubclient/tree/master/examples
-
it is posible to send Just image/data via wify without displaying them on a browser ? I want to send images to à Rpi via wifi, but thé httpd example are ment to show images on a Web browser only
Here is a fairly basic MQTT example for Arduino-compatible devices.
- USR-TCP232-T2 and MQTT
- Web UI remote control ESP32-CAM with JavaScript MQTT Client project
- PubSubClient Issue: Sending message with length above 16377 bytes fails on ESP32
-
Help with MQTT Login using esp32-cam
Have a look at this example.
-
Trying to integrate to HiveMQ, need to parse URL to ip
What do you mean pubsubclient.h doesn't accept URLs as argument? Check out this example. You can change the mqtt_server variable to be whatever the hivemq URL is.
-
MQTT
On Arduino, the most used library is pubsubclient
-
PlatformIO vs. Arduino: different results
I'm using v 2.8 of Nick O'Leary's pub/sub client (https://github.com/knolleary/pubsubclient). Other libraries are what gets installed from the install of the toolchain. In the case of Arduino this is apt install arduino on Debian and installing the PlatformIO toolchain via the VS Code extension installer.
-
Can client know whether it is a retained message or not?
I am using this MQTT client library for Arduino/ESP, and its API is like this page. The callback function for message reception event is like the following:
What are some alternatives?
pubsubclient - A client library for the ESP8266 that provides support for MQTT
espMqttClient - MQTT client library for the Espressif devices ESP8266 and ESP32 on the Arduino framework.
WiFiManager - ESP8266 WiFi Connection manager with web captive portal
MqttClient - Mqtt Client for PLCnext Control
WiFi-remote-for-Bestway-Lay-Z-SPA - Hack - ESP8266 as WiFi remote control for Bestway Lay-Z spa Helsinki
esphome - ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
arduino-mqtt - MQTT library for Arduino
DHT-sensor-library - Arduino library for DHT11, DHT22, etc Temperature & Humidity Sensors
Tasmota - Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at