Skip to content

[ASK] How to "pass" an MQTT RPC call #799

@koepalex

Description

@koepalex

Product

.NET SDK

Azure Iot Operations version

No response

What happened?

Using the AIO SDK, to write a handler that handles multiple MQTT paths
[CommandTopic("foo/bar/{method}")]

and not passing in method into the TopicTokenMap, so that the AIO SDK use the MQTT wildcard +. Will allow the user to read the actual used method used out of the extendedRequest.RequestMetadata.TopicTokens dictionary.

But how to avoid answering that call, if the method isn't something the current service is responsible for? How to tell the AIO SDK, that it should not respond to that call?

List the steps to reproduce

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions