Hi all,
I plan to run OpenRemote in a multi-tenant setup (multiple Realms). Devices send raw TCP hex only (no MQTT/HTTP). I need to accept frames, decode them, map to attributes/assets, and ensure data lands in the correct Realm. I am prototyping a single external Python service that parses TCP and publishes via MQTT into a chosen Realm, but I would prefer to do this inside OR to avoid extra moving parts and future operational complexity.
Questions:
- What is the recommended way to ingest and parse incoming TCP hex inside OR, then route the decoded values to the right device in the correct Realm? (Agent plugin, Camel/Netty route, or another pattern?)
- For Realm selection, is content-based routing (device ID → Realm) the right approach, or should I run multiple endpoints bound to different Realms? How do I set the Realm context correctly for attribute writes?
- What is the best pattern to store device→asset and attribute mappings per Realm so they’re editable in the Console and reloadable by the parser at runtime?
Goal: a fully integrated solution in OR, without an external bridge/service.
Thanks!