You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However there is no info about the host and port of the Forwarder used by that session.
It would be useful to find a way to expose those information in a reliable manner.
Also, if in the future multiple instances of the cloud Forwarder exist, it would become hard to know which one is used by a specific session token.
The text was updated successfully, but these errors were encountered:
One option could be to query the Astarte interface io.edgehog.devicemanager.ForwarderSessionRequest and filter for the session token, in order to retrieve the initial request along with the other info. However with this approach it is not clear how many datastream events should be fetched in order to find the matching one.
Another option could be to update the interface and add /%{session_token}/host, /%{session_token}/port and /%{session_token}/secure endpoints. However these endpoints are updated one at a time by the device, so it might happen that some properties are missing when Edgehog queries the interface.
Another option could be to update the interface so that an endpoint like /%{session_token}/%{host}/%{port}/%{secure}/status can be published. However this approach should be validated and it would lead to an odd property structure.
Another option could be to update the interface so that an endpoint like /%{session_token}/state contains a JSON with all the necessary info. However this approach does not support type definitions and validation.
The io.edgehog.devicemanager.ForwarderSessionsState Astarte interface advertises the state of each session, exposing the status on the property
/%{session_token}/status
.However there is no info about the
host
andport
of the Forwarder used by that session.It would be useful to find a way to expose those information in a reliable manner.
Also, if in the future multiple instances of the cloud Forwarder exist, it would become hard to know which one is used by a specific session token.
The text was updated successfully, but these errors were encountered: