Evilfury/DiscardedVenus — Issue #13: Develop new Model
Author: Evilfury
Created: 2012-02-16 04:18:16+00:00
State: open
Labels: Features/Ideas

Instead of only allowing a device to be encountered every six hours, how about implementing a time duration of when the device is first encountered to the time it was last seen?

- Encounter new device called D, record start timestamp
- Every scan that is performed after that: if D appears, record/update finish timestamp
- If the device D is not seen in a scan for a quarter of an hour, then encounter finished!
- If device D is seen after the encounter has finished, make a new encounter

Encounter Schema:
- id?
- encounterMac
- encounterStartTime - first time you've seen the device
- encounterEndTime - last time you've seen the device
- encounterPolls - Keeps track of how many times you have scanned and this device has replied in the encounter
- encounterLatitude
- encounterLongitude
- encounterAccuracy