I believe this is a UI limitation rather than a functional limitation. Iâm not sure how the system would behave with multiple masters thought. The developer who wrote that piece of code is on vacation at the moment Will ask him when he gets back.
Thanks for taking the initiative to contribute code we would need a signed contributor agreement.
Before we consider integrating such a change weâd like to understand the exact use case for this, it wasnât envisaged that you would need/want multiple outbound connections from an edge gateway.
Suppose you have one or more factories. Each factory has an instance of OpenRemote to manage the assets there, independently of other factories.
Each factory, however, has devices/assets from various suppliers. Suppliers would like to monitor the operation of their devices/assets on those factories (using OpenRemote as well).
To do that, a gateway is needed for each supplier. Moreover, such a gateway needs to be filtered, that is, not everything is shared with the supplier. Those on the factory should be able to chose what is shared (e.g., by linking assets to a service user corresponding to that supplier).
The need for a gateway âfilterâ is the reason why we included not only the id but also a username in the connection data structure. That is also the reason for this and this.
Hope this help. Please let me know if you have any questions.
This sounds like a use case better solved by giving access to the suppliers on the central manager; you can specify exactly which assets they can see by making the user restricted and linking them to the appropriate assets.
The edge gateways arenât concerned with who will access the data but just communicating with a central cloud hosted manager instance.
I am not sure I understand you correctly but it seems that you would end up exposing all of the clientâs data (in the realm) and this is something we cannot have.
I reread your message and what I think you are proposing is that: in the factory instance, a user is created, specifically for the supplier.
That does work but the supplier wants to integrate all their assets into a single instance. Otherwise, in order to get a list of all assets (for example), a separate request to all know factories would be needed.