-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: update mosquitto strings #3343
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
base: develop
Are you sure you want to change the base?
feat: update mosquitto strings #3343
Conversation
Signed-off-by: n4n5 <its.just.n4n5@gmail.com>
Signed-off-by: n4n5 <its.just.n4n5@gmail.com>
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
b612b85 to
93557bf
Compare
|
I don't think I agree with this change. Could you explain what problem you believe it to be solving? |
mosquitto/libcommon/strings_common.c Lines 148 to 166 in 7786833
Currentlyt, to get the string of a connack code, we should do
And it's also not documented if I'm correct - only as comment here mosquitto/examples/subscribe/basic-1.c Lines 17 to 20 in 7786833
This fix, update the
Also I've added strings for disconnect code translation using |
|
Ah, thank you I understand. I believe the answer is to better document it then. There is no such thing as a connack code/string in MQTT v5.0, and no such thing as a reason code/string in MQTT v3.1.1, so mixing the two doesn't make sense to me. |
|
Hum that's strange because on MQTTv5 (https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html) I see
On MQTTv3 I see
On MQTTv5, the codes from 2.4 have a general name e.g
What do you think about the What do you think about the I can also edit the documentation if needed |
6b404a7 to
2c4967a
Compare
74cc684 to
fd0fa72
Compare
make testwith your changes locally?Hello