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

How can i get publish message failed info or a failed callBack? #46

Open
GMCoder opened this issue Jul 26, 2016 · 7 comments
Open

How can i get publish message failed info or a failed callBack? #46

GMCoder opened this issue Jul 26, 2016 · 7 comments

Comments

@GMCoder
Copy link

GMCoder commented Jul 26, 2016

No description provided.

@GMCoder
Copy link
Author

GMCoder commented Jul 26, 2016

When i publish a message,i want get a failed call back.Just have success call back now.

@dbburgess
Copy link
Contributor

I don't think this library supports that. You could set the QoS to something higher to confirm the message was received, but that wouldn't help too much with catching errors sending, unfortunately.

@GMCoder
Copy link
Author

GMCoder commented Jul 27, 2016

Thank you,I think solve this problem should be change other library.Can you give me some advice?

@dbburgess
Copy link
Contributor

You're welcome. I'm not sure I understand. Do you want to try to modify this library to support it?

@GMCoder
Copy link
Author

GMCoder commented Jul 27, 2016

Yes,how can i modify this library to support it?

@dbburgess
Copy link
Contributor

This project is no longer maintained, but you are free to fork it and modify it to suit your needs.

The relevant section is here, where the publishData method is. It's just a wrapper around mosquitto, so you can look there for more details. The publish method being used does actually return values that could be used for at least some error handling.

Those links should help you get started. Beyond that, I probably can't be of much help. Good luck!

@GMCoder
Copy link
Author

GMCoder commented Jul 28, 2016

Thank you!I am so grateful to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants