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

Bring detection timestamp up to beacon object #956

Merged
merged 3 commits into from
Apr 3, 2020

Conversation

rlatapy-luna
Copy link
Contributor

Allow to retrieve detection time, useful for background detections.

  • Use ScanResult::getTimestampNanos and system clock/elapsedRealTime to compute epoch timestamp.
  • Bring it from scan callbacks up to Beacon object in mFirstCycleDetectionTimestamp field and mLastCycleDetectionTimestamp which correspond respectively to the timestamp of the first and last detected packets.

Linked issue #918

@rlatapy-luna rlatapy-luna force-pushed the feature/getDetectionTime branch 2 times, most recently from a4c43b4 to a89c39a Compare March 25, 2020 23:25
@rlatapy-luna rlatapy-luna force-pushed the feature/getDetectionTime branch from a89c39a to 0cea58c Compare March 25, 2020 23:32
@rlatapy-luna rlatapy-luna marked this pull request as ready for review March 25, 2020 23:35
@davidgyoung
Copy link
Member

Looks great, @rlatapy-luna, thanks!

I will run some tests to make sure it works for me before merging.

@davidgyoung davidgyoung merged commit 0cea58c into AltBeacon:master Apr 3, 2020
@davidgyoung
Copy link
Member

Yep, this works well. Thank you for the contribution, @rlatapy-luna.

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

Successfully merging this pull request may close these issues.

2 participants