distance
Gets the (Flow of) the distance in meters between the scanner and a Flow of ConnectableDevice. To get a more stable result, this method will average the distance over the last averageOver results.
Return
the Flow of distance in meters between the scanner and the ConnectableDevice in the given Flow
Parameters
the constant to account for environmental interference. Should usually range between 2.0 and 4.0
averages the calculated distance over this amount of scan results. Always uses the last results.
Gets the (Flow of) the distance in meters between the scanner and a ConnectableDevice. To get a more stable result, this method will average the distance over the last averageOver results.
Return
the Flow of distance in meters between the scanner and the ConnectableDevice
Parameters
the constant to account for environmental interference. Should usually range between 2.0 and 4.0
averages the calculated distance over this amount of scan results. Always uses the last results.