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

Check if paused #70

Open
JosephTuffin opened this issue Nov 11, 2020 · 1 comment
Open

Check if paused #70

JosephTuffin opened this issue Nov 11, 2020 · 1 comment

Comments

@JosephTuffin
Copy link

JosephTuffin commented Nov 11, 2020

Hi, is there a way to check if the device is paused at each point of the data stream for FIT files? I can get the total time paused but I can't see a way to check at specific times.

Cheers

@jimmykane
Copy link
Collaborator

Hey its well possible. Plenty of ways todo this.

You can check the getPause(): DataPause; method on the object (event) you get back or even the events. However not all services or file formats do add pauses or events

/**
   * Gets only the start type of events
   */
  getStartEvents(): DataStartEvent[];

  /**
   * Gets only the stop type of events
   */
  getStopEvents(): DataStopEvent[];

  /**
   * Gets the stop all type of events
   */
  getStopAllEvents(): DataStopAllEvent[];

Keep me posted if you need more help and sorry for the late reply

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