Scketchs com QoS MQTT.
Posted: Tue Apr 28, 2026 1:42 am
Friends,
I'm starting out with ESP32, I don't have much knowledge yet.
I need 3 sketches to measure temperature with DHT11, but each sketch must have a different MQTT QoS configuration. One sketch with QoS 0, another with QoS 1, and the third with QoS 3.
The data will be sent to a cloud platform, and the ESP32 will be connected to the wireless network.
I discovered that the PubSubClient library (by knolleary) doesn't work with QoS 1 and 2. I need sketches that work with other libraries.
Regards,
Flávio.
I'm starting out with ESP32, I don't have much knowledge yet.
I need 3 sketches to measure temperature with DHT11, but each sketch must have a different MQTT QoS configuration. One sketch with QoS 0, another with QoS 1, and the third with QoS 3.
The data will be sent to a cloud platform, and the ESP32 will be connected to the wireless network.
I discovered that the PubSubClient library (by knolleary) doesn't work with QoS 1 and 2. I need sketches that work with other libraries.
Regards,
Flávio.