public void commitMeasurements ( ) { if ( ! getFilter ( ) . noMeasurementsAvailable ( ) ) { double runningAverage = getFilter ( ) . calculateRssi ( ) ; mBeacon . setRunningAverageRssi ( runningAverage ) ; mBeacon . setRssiMeasurementCount ( getFilter ( ) . getMeasurementCount ( ) ) ; LogManager . d ( TAG , "calculated new runningAverageRssi: %s" , runningAverage ) ; } else { LogManager . d ( TAG , "No measurements available to calculate running average" ) ; } mBeacon . setPacketCount ( packetCount ) ; packetCount = 0 ; }
Done at the end of each cycle before data are sent to the client