added measurement grouping for beacons
had to change the parameter boundaries of the wifi optimizer to be able to use it for bluetooth... this should be refactored to something more generic.. some minor changes in ble
This commit is contained in:
@@ -22,12 +22,12 @@ struct BeaconMeasurements {
|
||||
|
||||
std::vector<BeaconMeasurement> entries;
|
||||
|
||||
/** remove entries older then 3000 ms*/
|
||||
/** remove entries older then 1000 ms*/
|
||||
void removeOld(const Timestamp latestTS) {
|
||||
|
||||
std::vector<BeaconMeasurement>::iterator it;
|
||||
for (it = entries.begin(); it != entries.end(); ++it){
|
||||
if(latestTS - it->getTimestamp() > Timestamp::fromMS(1000*3)){
|
||||
if(latestTS - it->getTimestamp() > Timestamp::fromMS(1000)){
|
||||
entries.erase(it);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user