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

[MQTTMessage] missing suback variable header #608

Open
shenhuagege opened this issue May 31, 2022 · 0 comments
Open

[MQTTMessage] missing suback variable header #608

shenhuagege opened this issue May 31, 2022 · 0 comments

Comments

@shenhuagege
Copy link

shenhuagege commented May 31, 2022

if (type == MQTTSuback) {
if (message.data.length < 3) {
DDLogWarn(@"[MQTTMessage] missing suback variable header");
message = nil;
}
}

The server returns data is <90020002>
message.data is <0002>
the log is :
2022-05-31 18:14:16.992163+0800 YSTMqttSDK_Example[3152:267773] -[YstMQTTWebsocketManager handleEvent:event:error:]MQTT 不可接受的协议
2022-05-31 18:14:16.992608+0800 YSTMqttSDK_Example[3152:267773] -[YstMQTTWebsocketManager handleEvent:event:error:]链接报错 -- Error Domain=MQTT Code=-7 "MQTT illegal message received" UserInfo={NSLocalizedDescription=MQTT illegal message received}
2022-05-31 18:14:16.993296+0800 YSTMqttSDK_Example[3152:267773] -[YstMQTTWebsocketManager handleEvent:event:error:]MQTT链接关闭
Did the server return the wrong data?

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

1 participant