Skip to content

Improve offline detection logic #69

@arrdalan

Description

@arrdalan

Currently, we use the app-triggered heartbeat to detect if the camera is offline. This has a few problems:

  • App-tirggered heartbeat is not used frequently, hence there's a large delay for us to detect offline status.
  • Sometimes, when this heartbeat is triggered in the background, network access is restricted and hence the heartbeat fails, further increasing the delay.

Instead, we can use a different scheme where the camera periodically (e.g., every minute) sends a heartbeat to the server. The server can then inform the app that the camera is offline if it doesn't receive a few consecutive heartbeats.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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