Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The asynchronous 'SetCallbacks' function requires a 'MessageArrived' function even in a publication scenario #1441

Open
senajoaop opened this issue Jan 21, 2024 · 0 comments
Milestone

Comments

@senajoaop
Copy link

The documentation page for the Paho Asynchronous MQTT C Client Library contains an example of a publication, which have:

[...]
MQTTAsync_setCallbacks(client, NULL, connlost, NULL, NULL);
[...]

This example doesn't work based on the if verification in line 1521 in the MQTTAsync.c file, which checks if the MQTTAsync_messageArrived* pointer to a callback functions is NULL.

@icraggs icraggs added this to the 1.3.14 milestone Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants