public interface SourceCallback
receive(VehicleMessage)
method to pass along the new value.Modifier and Type | Method and Description |
---|---|
void |
receive(VehicleMessage measurement)
Receive a new measurement with at least a value and optionally an event.
|
void |
sourceConnected(VehicleDataSource source)
The data source is connected, so if necessary, keep the device awake.
|
void |
sourceDisconnected(VehicleDataSource source)
The data source is connected, so if necessary, let the device go to
sleep.
|
void receive(VehicleMessage measurement)
measurement
- the new measurement.void sourceConnected(VehicleDataSource source)
void sourceDisconnected(VehicleDataSource source)