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

Add check for cloud access token expiration on ping events #4

Open
RicArch97 opened this issue Mar 11, 2021 · 0 comments
Open

Add check for cloud access token expiration on ping events #4

RicArch97 opened this issue Mar 11, 2021 · 0 comments

Comments

@RicArch97
Copy link

Issue

  • Token expiration is currently only checked on action events (like stateStateUpdate, PresenceEvent etc)

Expected result

  • A check of token expiration on ping events would mean the connection could be restored in 30 seconds, rather than waiting on one of the other events, which are situational and might not occur in a while.

Reproduce steps

  1. Login with {"ttl": 5} (or similar) in the login JSON
  2. Wait more than 30 seconds (ping event comes in), check if reconnected
  3. Now switch a Crownstone, check if reconnected
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

1 participant