Adafruit_MQTT_Library
Adafruit_MQTT_Library copied to clipboard
Arduino library for MQTT support
This adds retains support to published messages. It should be backwards compatible with existing clients as it defaults to false if not supplied. Solves #20 and #161
Added an optional flag on publish to set the retain flag. If set to true the MQTT broker will retain the last published data. As the flag is optional it...
as the title saying ,I dont want to receice this disconnected message(I use $SYS topic to listen) because it didn't disconnect actually,I just want the disconnect message when truely disconnecting...
Hello! I found that during the publish routine (bool Adafruit_MQTT::publish(...)), using QoS = 1, the packet_id_counter variable gets incremented even if the length check fails. Therefore, if a package is...
- Arduino board: ESP8266 (LoLin NodeMcu v3) - Adafruit_MQTT_library: 2.4.2 - MQTT Server: Eclipse mosquitto 2.0.12 Hello, I discovered strange problem during publishing messages. Every first PUBLISH packet gets no...
Issue: Tried to upload data to a MQTT broker (local network; IObroker) but failed to update a value which was writeable in a first try. When using a different MQTT...
Through the sketch in the library I'm trying to publish the following message {"unique_id": "TAVERNETTA-temperature","device_class": "temperature", "name": "TAVERNETTA Temperature", "state_topic": "homeassistant/sensor/TAVERNETTA/state", "unit_of_measurement": "°C", "value_template": "{{ value_json.temperature}}"}, but the message that...
- Arduino board: **ESP8266** - Arduino IDE version (found in Arduino -> About Arduino menu): **1.8.16** - List the steps to reproduce the problem below (if possible attach a sketch...
One useful pattern to track device up/down status is to have a will set to .../status with value '0' and retain, and when the device comes up to publish to...
- **Describe the scope of your change--i.e. what the change does and what parts of the code were modified.** This will help us understand any risks of integrating the code....