MQTTnet
MQTTnet copied to clipboard
Rpc Client UserProperties
Description
Why is there no way to pass in UserProperties, ContentType... and such into the IMqttRpcClient
's ExecuteAsync
?
This is rather annyoing, as it doesn't register userProperties from the given IMqttClient
either.
Suggestion
an overload to ExecuteAsync
that simply takes in a MqttApplicationMessage
Related to
- MQTTnet.Extensions.Rpc
Passing a full application message may break the entire RPC feature because then the user has access to the topic. So he might set it to another value and the internal RPC stuff will rewrite it. I will think about creating a new MqttRcpApplicationMessage which lacks the topic.