Open apsite opened 2 years ago
Same problem on sending SUBSCRIBE immediately after connect.
I agree with you both. Actually, the other MQTT library (pubsubclient) is using a packet id counter which is always different from 0. See here:
@brentru : This bug requires modifying few lines. I can make the modifications myself and make a pull request.
@Mollayo Thank you for finding this, please make a pull request and tag me so I can review it.
@brentru I have submitted the pull request. It is available for review. See here: https://github.com/adafruit/Adafruit_MQTT_Library/pull/207
@brentru I have submitted the pull request. It is available for review. See here: https://github.com/adafruit/Adafruit_MQTT_Library/pull/207
@Mollayo @brentru This looks like it stalled, and all three (!) PRs were closed without explanation. Is there anything you or I could do to move it forward?
Hello, I discovered strange problem during publishing messages. Every first PUBLISH packet gets no response and additionally server closes connection with:
Client 7879f4a.... disconnected due to protocol error.
...when packets are counted from 0. When I set
packet_id_counter
variable initially to 1 inAdafruit_MQTT::Adafruit_MQTT
, everything works OKThis is also related to QOS level.
packet_id_counter
can be set to 0 but only when QOS 0 is used.I suspect that this is exact same case as described in MQTT docs: