Hello,
I have a doubt about DUP flag in MQTT 3.1.1 specification for some messages.
Let's consider SUBSCRIBE and UNSUBSCRIBE message.
They have bits 3,2,1 and 0 in the fixed header equals to 0,0,1,0.
In general the above bits mean : DUP, QOS Level (2 bit) and RETAIN.
If SUBSCRIBE and UNSUBSCRIBE have bit 3 (DUP) fixed to 0.
Now, If client send SUBSCRIBE/UNSUBSCRIBE message for the first time but it doesn't receive SUBACK/UNSUBACK, it has to resend message.
Doesn't it set bit 3 (DUP) equals to 1 ? Must the bit 3 be 0 even if it is a resend of a message (duplicate) ?
Paolo.