quartiq / minimq

Minimal no_std MQTT v5.0 client implementation
MIT License
144 stars 16 forks source link

Adding support for simply replying to inbound messages #107

Closed ryan-summers closed 2 years ago

ryan-summers commented 2 years ago

This PR takes out the dirty work of managing replying to an inbound message.

There is now a convenience reply() API that can be used. A new ReplyOptions can be constructed based on the received message properties and can be further used to customize reply() behavior, such as ignoring cases where there is no ResponseTopic or using a default ResponseTopic when none is found.

This PR fixes #84.