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

Connection to two mqtt 5.0 brokers fails #446

Closed
rafaelnobrekz opened this issue Mar 24, 2022 · 3 comments
Closed

Connection to two mqtt 5.0 brokers fails #446

rafaelnobrekz opened this issue Mar 24, 2022 · 3 comments
Assignees
Labels

Comments

@rafaelnobrekz
Copy link

rafaelnobrekz commented Mar 24, 2022

Hello! Thanks for providing CocoaMQTT - I guess the only native Swift MQTT 5.0 client?
Trying to run the sample app against the brokers in https://test.mosquitto.org/ fail - I am able to connect but:

  • Trying to subscribe to a topic yields an immediate disconnection
  • Trying to publish to a topic crashes the library with the following:

Screen Shot 2022-03-24 at 16 34 15

I have also tried with a paho based 5.0 broker and the result is the same. The test broker broker-cn.emqx.io referenced in the sample works fine (apart from a "JSON" message prepending every message when version 5.0 is selected).

@rafaelnobrekz
Copy link
Author

I can successfully connect/subscribe/publish on all three servers above from the MQTTX Mac client app
Screen Shot 2022-03-24 at 17 13 40

@leeway1208
Copy link
Collaborator

hi, I will fix it later. I think it is a bug.😄

@leeway1208 leeway1208 added the bug label Mar 25, 2022
@leeway1208 leeway1208 self-assigned this Mar 25, 2022
leeway1208 added a commit that referenced this issue Mar 25, 2022
…e for differnet version 4.func subscribe qos bug 5.didPublishAck and MqttDecodePubRec may be nil (#445 #446)
@rafaelnobrekz
Copy link
Author

2.0.3-beta4 fixes the issue! 🎉

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

No branches or pull requests

2 participants