MQTTnet icon indicating copy to clipboard operation
MQTTnet copied to clipboard

Rpc Client UserProperties

Open bernhard-R opened this issue 1 year ago • 1 comments

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

bernhard-R avatar Sep 19 '23 07:09 bernhard-R

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.

chkr1011 avatar Nov 04 '23 14:11 chkr1011