Skip to content

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

Description

@RicArch97

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions