Skip to content

Commit

Permalink
Example description improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrochowski committed Sep 2, 2016
1 parent 92b7be2 commit 2952f26
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -8,10 +8,8 @@ Example of use can be find in examples/SimpleExample class. Library contains Gen
GenericBeacon genericBeacon = new GenericBeacon("macHere",-59); //mac address and txPower constructor
genericBeacon.setMeasurementDeviceConstants(new RPiEmbeddedAntennaConstants());//constants implementation setter
genericBeacon.setRssiFilter(new KalmanFilter());//filter implementation setter
for(int d : DATA){
genericBeacon.setRssi(d);//in setter filter is applied
System.out.println((int)d * -1 + "," + (int)genericBeacon.getDistance());//getDistance method calculates distance from filtered rssi
}
genericBeacon.setRssi(-79);//in setter filter is applied
System.out.println((int)d * -1 + "," + (int)genericBeacon.getDistance());//getDistance method calculates distance from filtered rssi
```
##Additional devices / filters / beacon types support
Additional devices could be supported by implementing MeasurementDeviceConstants interface, filters by implementing RssiFilter interface and beacons by implementing Beacon interface.
Expand Down

0 comments on commit 2952f26

Please sign in to comment.