php-fit-file-analysis
php-fit-file-analysis copied to clipboard
pause or smart record
Hi, How does the code separate between a Pause or just a Smart Record (sampling not every second)?
Hi, if you look at the isPaused() method on https://github.com/adriangibbons/php-fit-file-analysis/blob/master/src/phpFITFileAnalysis.php#L2440
It looks for start and stop_all events, which I found to be ones of interest when developing this functionality. From the Profile.xlsx file from the FIT SDK:
| event_type | enum | ||
|---|---|---|---|
| start | 0 | ||
| stop | 1 | ||
| consecutive_depreciated | 2 | ||
| marker | 3 | ||
| stop_all | 4 | ||
| begin_depreciated | 5 | ||
| end_depreciated | 6 | ||
| end_all_depreciated | 7 | ||
| stop_disable | 8 | ||
| stop_disable_all | 9 |
I don't think that smart recording triggers an event so shouldn't impact on pausing.
Let me know if you find to the contrary.