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

Facilitate PublishOnly uses #79

Open
Jeppedy opened this issue Feb 24, 2019 · 1 comment
Open

Facilitate PublishOnly uses #79

Jeppedy opened this issue Feb 24, 2019 · 1 comment

Comments

@Jeppedy
Copy link

Jeppedy commented Feb 24, 2019

When I'm using a "publish-only" device, no QoS, I don't believe I actually need to register a callback function. But, there's no signature to allow for that.
It's not a big deal, but it's not clean...
Can you make a constructor that does not require the callback, and will throw an exception if subscribe() is called...

@hirotakaster
Copy link
Owner

Simple publish-only case like this, please use callback-function is NULL.
MQTT client("MQTT server", 1883, NULL);

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