ESP32MQTTClient icon indicating copy to clipboard operation
ESP32MQTTClient copied to clipboard

How to subscribe to a topic

Open rwb196884 opened this issue 1 year ago • 1 comments

I'm trying to connect to MQTT and receive messages.

PubSubClient is broken and dead , Espressif's mqtt_client example doesn't even compile, and MQTTClient simply doesn't work; this is next on the list.

But the example https://github.com/cyijun/ESP32MQTTClient/blob/main/examples/HelloToMyself/HelloToMyself.ino makes no sense: the functions onMqttConnect and handleMQTT are defined but never used.

Is it possible to use this to subscribe to a topic and receive messages? How?

Somehow handleMQTT is getting called, but it's unclear how to get the topic or payload.

rwb196884 avatar Oct 13 '24 10:10 rwb196884