Closed bertmelis closed 2 years ago
@bertmelis Only the retain flag is available in the data event:
https://github.com/espressif/esp-mqtt/blob/master/mqtt_client.c#L958
qos and dup flags could be added in a similar way. PRs welcome :+1:
While implementing I overlooked something I also wanted: the payload from the SUBACK message. This payload contains the maximum granted qos level of the subscribe, or 0xF for failure.
OK to put in the same PR?
OK to put in the same PR?
Absolutely, but please make it a separate commit.
Is it possible to get the QoS, dup-flag and retain-flag when receiving messages or subacks?
I can't find any docs on this. Happy to create a PR if not yet implemented. (note: I did not try to implement yet)