Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Java: QoS 2 wrong packet id
Java: QoS 2 wrong packet id [message #1787125] Sat, 19 May 2018 10:30
Andreas Müller is currently offline Andreas MüllerFriend
Messages: 1
Registered: May 2018
Junior Member

when I subscribe with Paho Java client with QoS 2, the server sends a PUBLISH and it is answered by the client with PUBREC and so on...

The packet id in the PUBREC must match the one sent in the PUBLISH. But what I see is that the client sends another packet id. From the server log:


SND: MqttPublishMessage[fixedHeader=MqttFixedHeader[messageType=PUBLISH, isDup=false, qosLevel=EXACTLY_ONCE, isRetain=false, remainingLength=0], variableHeader=MqttPublishVariableHeader[topicName=MQTT/Examples, packetId=0], payload=io.netty.buffer.ByteBuf@6c36aa7c]


RCV: MqttMessage[fixedHeader=MqttFixedHeader[messageType=PUBREC, isDup=false, qosLevel=AT_MOST_ONCE, isRetain=false, remainingLength=2], variableHeader=MqttMessageIdVariableHeader[messageId=2], payload=]

Any hints?

Previous Topic:Connection Error Handling
Next Topic:how do I install paho-mqtt on raspbian stretch python 3.5
Goto Forum:

Current Time: Tue Oct 20 07:21:09 GMT 2020

Powered by FUDForum. Page generated in 0.01467 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top