public final class Util_Unit
extends java.lang.Object
BleScanRecord
class.Modifier and Type | Method and Description |
---|---|
static Interval |
getRandomTime()
Overloads
getRandomTime() , using the range 50-500. |
static Interval |
getRandomTime(int from,
int to)
Returns a random amount of time wrapped in an
Interval instance from the given range. |
static byte[] |
randomBytes(int size)
Returns a random byte array of the given size
|
static java.lang.String |
randomMacAddress()
Returns a random mac address
|
static int |
randomRssi()
Returns a random RSSI value within the range
BleDeviceConfig.DEFAULT_RSSI_MIN and BleDeviceConfig.DEFAULT_RSSI_MAX |
public static java.lang.String randomMacAddress()
public static byte[] randomBytes(int size)
public static Interval getRandomTime(int from, int to)
Interval
instance from the given range.public static int randomRssi()
BleDeviceConfig.DEFAULT_RSSI_MIN
and BleDeviceConfig.DEFAULT_RSSI_MAX
public static Interval getRandomTime()
getRandomTime()
, using the range 50-500.