Commit 81adf02f8ad32ec81bc268f568099f4dd746359c
1 parent
ac5b0f18
fix the message type of UnSubAck message
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -247,7 +247,7 @@ public class MqttTransportHandler extends ChannelInboundHandlerAdapter implement |
247 | 247 | |
248 | 248 | private MqttMessage createUnSubAckMessage(int msgId) { |
249 | 249 | MqttFixedHeader mqttFixedHeader = |
250 | - new MqttFixedHeader(SUBACK, false, AT_LEAST_ONCE, false, 0); | |
250 | + new MqttFixedHeader(UNSUBACK, false, AT_LEAST_ONCE, false, 0); | |
251 | 251 | MqttMessageIdVariableHeader mqttMessageIdVariableHeader = MqttMessageIdVariableHeader.from(msgId); |
252 | 252 | return new MqttMessage(mqttFixedHeader, mqttMessageIdVariableHeader); |
253 | 253 | } | ... | ... |