public class ScanPeriod
extends java.lang.Object
ScanContext
.
The active scan period must be a positive value equal or longer than 3000 ms whereas
the passive scan period must be a positive value equal or higher than 2000ms or equal to 0.Modifier and Type | Field and Description |
---|---|
static ScanPeriod |
RANGING
The constant RANGING.
|
Constructor and Description |
---|
ScanPeriod(long activePeriod,
long passivePeriod)
Instantiates a new Scan period.
|
Modifier and Type | Method and Description |
---|---|
long |
getActivePeriod()
Provides active scan period [ms].
|
long |
getFullPeriod()
Provides sum of both active and passive period [ms].
|
long |
getPassivePeriod()
Provides passive period [ms].
|
public static final ScanPeriod RANGING
public ScanPeriod(long activePeriod, long passivePeriod)
activePeriod
- the active period [ms]passivePeriod
- the passive period [ms]public long getActivePeriod()
public long getPassivePeriod()
public long getFullPeriod()