Open ronzalo opened 11 years ago
Sorry but qos is not supported yet, It is on the todo list but as I didn't have the use for it I haven't implemented it yet.
Andy
Hello, Support publish qos2 now?
Me2 looking forward for this feature.
I guess the issue lies within this code part of subscribe
:
//$qos
$cmd += ($qos << 1);
According to MQTT spec the fixed header of SUBSCRIBE should be 0x82; the QoS doesn't go there. The QoS is just is part of the payload. I guess the two lines cited above could be removed.
Hi,
I tried to publish with qos 2, but does not work.
$conn->publish($request->getParameter('target'), $msg, 2);
Don't know if I'm missing some detail.
Thanks in advance