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

Does C++ Wrapper Support Shared Subscription? #3190

Closed
W2Q3Q1 opened this issue Dec 16, 2024 · 2 comments
Closed

Does C++ Wrapper Support Shared Subscription? #3190

W2Q3Q1 opened this issue Dec 16, 2024 · 2 comments
Labels
Status: Available No one has claimed responsibility for resolving this issue.

Comments

@W2Q3Q1
Copy link

W2Q3Q1 commented Dec 16, 2024

Hello,

Shared subscription worked well on my PC while using mosquitto_sub & mosquitto_pub at MQTT V5. But when I tried to subscribe "$share/a/b" using C++ wrapper (mosquittopp.h) and sent message using "mosquitto_pub -t b -m hello -V mqttv5", my client received nothing.

Does C++ wrapper support shared subscription?

Thanks a lot!

@github-actions github-actions bot added the Status: Available No one has claimed responsibility for resolving this issue. label Dec 16, 2024
@W2Q3Q1
Copy link
Author

W2Q3Q1 commented Dec 16, 2024

I have already configured the client to use MQTT V5 just after the creation of the C++ object and before the connect function being called:

int mqtt_version = MQTT_PROTOCOL_V5; mosquittoClient->opts_set( MOSQ_OPT_PROTOCOL_VERSION, &mqtt_version );

@W2Q3Q1
Copy link
Author

W2Q3Q1 commented Dec 17, 2024

I have also tried C version interfaces, but shared subscription is still not OK. Is there some other configurations I should use?

@W2Q3Q1 W2Q3Q1 closed this as completed Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Available No one has claimed responsibility for resolving this issue.
Projects
None yet
Development

No branches or pull requests

1 participant