Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol Gateway: Possiblity to use Gateway as MQTT Topic mapper #22

Open
julian-sotec opened this issue Mar 21, 2023 · 0 comments
Open

Comments

@julian-sotec
Copy link
Contributor

Background:
Devices that connect to an MQTT Broker may rely on a fixed topic structure which cannot be changed.
We want to provide a configurable MQTT Topic mapping for a number of MQTT Topics to hono internal MQTT Topics.
Our Idea would be:

  • Implement a protocol gateway with configurable mqtt topic mapping unsing the template
  • Implement (Re-Use) the same Authentication mechanism that Hono provides on the MQTT Adapter
  • Implement routing of configured topics to correct hono internal MQTT topics for authenticated devices
  • Implement command & response handling (as it exists in the current template using correlation id mechanism)

Flow would be:

  1. Configure topic mapping as configuration
  2. Device authenticates to new protocol gateway using one of the configured topics
  3. Gateway maps incoming MQTT Message or Command to hono's internal MQTT Topic for authenticated devices based on configuration

Our questions would be:
Does this approach make sense from a protocol gateway point of view?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant