public static interface Temperature.SamplingConfigBuilder
Modifier and Type | Method and Description |
---|---|
void |
commit()
Write the configuration settings to the MetaWear board and starts the sampling
|
Temperature.SamplingConfigBuilder |
withSampingPeriod(int period)
Deprecated.
As of v1.6, use
withSamplingPeriod(int) as this method's name was mispelled |
Temperature.SamplingConfigBuilder |
withSamplingPeriod(int period)
Set the temperature sampling period
|
Temperature.SamplingConfigBuilder |
withSilentMode()
Enables silent mode, which internally is notified of the events but will not
trigger the callback functions
|
Temperature.SamplingConfigBuilder |
withTemperatureBoundary(float lower,
float upper)
Set the temperature boundaries.
|
Temperature.SamplingConfigBuilder |
withTemperatureDelta(float delta)
Set the temperature delta.
|
Temperature.SamplingConfigBuilder withSilentMode()
@Deprecated Temperature.SamplingConfigBuilder withSampingPeriod(int period)
withSamplingPeriod(int)
as this method's name was mispelledperiod
- How often to sample the temperature, in msTemperature.SamplingConfigBuilder withSamplingPeriod(int period)
period
- How often to sample the temperature, in msTemperature.SamplingConfigBuilder withTemperatureDelta(float delta)
Temperature.Callbacks.temperatureDeltaExceeded(float, float)
delta
- Change in temperature, in Celsius, to detectTemperature.SamplingConfigBuilder withTemperatureBoundary(float lower, float upper)
Temperature.Callbacks.boundaryCrossed(float, float)
lower
- Lower boundary value, in Celsiusupper
- Upper boundary value, in Celsiusvoid commit()