Skip to content
New issue

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

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

Already on GitHub? # to your account

Connection status is unique to each instance of the sdk #42

Open
DomAmato opened this issue Jul 11, 2020 · 0 comments
Open

Connection status is unique to each instance of the sdk #42

DomAmato opened this issue Jul 11, 2020 · 0 comments
Labels
bug for issues

Comments

@DomAmato
Copy link
Contributor

Describe the problem

If you were to create two instances of the HologramCloud object and connect with one of them one would show a status of CLOUD_CONNECTED and the other would be CLOUD_DISCONNECTED. While its a contrived example we should be smarter about monitoring the actual state. We also have unreachable states because nothing changes the status outside of the connect and disconnect functions and neither of them does anything with error handling

Expected behavior

If possible doing network.getConnectionStatus() should return the current connection status through a more involved process. Because some modems have a single serial connection querying them during a PPP session might not be possible be we could also check for an active PPP session and query the ppp0 interface to determine the status more reasonably.

Actual behavior

If you connect outside a script it will just return 0 because the status value is instanced

Steps to reproduce the behavior

Do sudo hologram connect
run a script that tries to query the connection status

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
  • Python SDK installed via PyPI or GitHub:
  • SDK version (use command below):
  • Python version:
  • Hardware (modem) model:
@DomAmato DomAmato added the bug for issues label Jul 11, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug for issues
Projects
None yet
Development

No branches or pull requests

1 participant