Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] ESP-IDF - Subscribe and Yield

Hi,

I'll respond in the issue - but you have put more information here than is in the issue.  It's better to include as much information as you have when opening an issue. 

Thanks

Ian


On 30/05/2018 08:10, Hitesh Pratyush V wrote:
I am working on making a subscriber code to run on my ESP32. I am able to connect to my broker and I am able to subscribe as well but I am unable to receive the messages that are being sent to the Device and as a result the broker keeps sending messages to the device. Even when I receive the message, the ACK is not being sent back.


This is link to the code Client API that I am using but there is not proper documentation to help me out.

ESP_LOGI(MQTT_TAG, "MQTTUnsubscribe  ...");
ret = MQTTUnsubscribe(&client, "test/topic");
if (ret != SUCCESS) {
ESP_LOGI(MQTT_TAG, "MQTTUnsubscribe: %d", ret);
}

This is the code to subscribe.

while(1) {
ret = MQTTYield(&client, 1000);
if (ret != SUCCESS) {
ESP_LOGI(MQTT_TAG, "MQTTYield: %d", ret);
}
}

And this is the code to keep the client connection alive.

It would be great if someone could help me out 
I also posted an issue on Github at the link https://github.com/eclipse/paho.mqtt.embedded-c/issues/138
If someone knows something you can help me out on the link above. 
Thank You.




_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Eclipse Paho Project Lead & Mosquitto Committer

Back to the top