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

Offline detection status / event #7221

Open
emilm opened this issue Feb 21, 2024 · 3 comments
Open

Offline detection status / event #7221

emilm opened this issue Feb 21, 2024 · 3 comments
Assignees

Comments

@emilm
Copy link

emilm commented Feb 21, 2024

Is there a way to detect if a module lost connection to the Internet (remote hub) yet? iot edge does know itself, but I think it should expose that information so I can act on it.

@nyanzebra nyanzebra self-assigned this Feb 21, 2024
@nyanzebra
Copy link
Contributor

@emilm The goal of edgehub is to hide the connectivity issues/status from the modules/devices so by purpose, a module cannot know that the upstream connection is lost. What is your use case?

@emilm
Copy link
Author

emilm commented Feb 26, 2024

Hello! I understand that, but when you write software that behaves differently when offline, it poses a problem.
I would like a status or an event that you can choose to subscribe to, to detect this.

As an example you have a system that receives data that tells how the system should behave. If you are offline it should behave differently because there are cases you don't periodically expect the incoming data but it should still behave differently if it's offline.

I know it sounds kind of vague but I have to explain it this way because I would break NDA otherwise.

Please let me know if there is a way to query any of the services for this information. Right now I have to "ping" a REST endpoint, and set it as online if I get a response or that I receive incoming data such as a direct method.

@nyanzebra
Copy link
Contributor

@emilm sorry, but unfortunately, there is way to query the services like that at this time. I can bring this up internally as a formal ask though it might take time even if it is decided to implement such a feature.

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

2 participants