public abstract static class Temperature.Callbacks extends java.lang.Object implements MetaWearController.ModuleCallbacks
Constructor and Description |
---|
Temperature.Callbacks() |
Modifier and Type | Method and Description |
---|---|
void |
boundaryCrossed(float boundary,
float current)
Called when either the lower or upper temperature boundaries have been crossed
|
Module |
getModule()
Get the module the notification represents
|
void |
receivedSamplingConfig(Temperature.SamplingConfig config)
Called when the sampling configuration has been received
|
void |
receivedTemperature(float degrees)
Called when MetaWear has responded with the temperature reading
|
void |
temperatureDeltaExceeded(float reference,
float current)
Called when the current temperature has exceeded a reference point by
the delta specified in
Temperature.SamplingConfigBuilder.withTemperatureDelta(float) |
public final Module getModule()
MetaWearController.ModuleCallbacks
getModule
in interface MetaWearController.ModuleCallbacks
Module
public void receivedTemperature(float degrees)
degrees
- Value of the temperature in Celsiuspublic void receivedSamplingConfig(Temperature.SamplingConfig config)
config
- Temperature sampling configurationpublic void temperatureDeltaExceeded(float reference, float current)
Temperature.SamplingConfigBuilder.withTemperatureDelta(float)
reference
- Reference temperature, in Celsius, the temperate delta is counted fromcurrent
- Current temperature, in Celsiuspublic void boundaryCrossed(float boundary, float current)
boundary
- Boundary that was crossed, in Celsiuscurrent
- Current temperature, in Celsius