Package | Description |
---|---|
com.digi.wva | |
com.digi.wva.async |
Callbacks on UI thread
|
Modifier and Type | Method and Description |
---|---|
void |
WVA.configure(String configPath,
JSONObject configObject,
WvaCallback<Void> callback)
Applies the given JSON object as configuration parameters on the specified configuration
web services path.
|
void |
WVA.createFaultCodeAlarm(FaultCodeCommon.Bus bus,
FaultCodeCommon.FaultCodeType type,
String ecu,
int seconds,
WvaCallback<Void> callback)
Create an alarm for fault code data from the given ECU on the WVA.
|
void |
WVA.createVehicleDataAlarm(String endpoint,
AlarmType type,
float threshold,
int seconds,
WvaCallback<Void> callback)
Create an alarm on the given vehicle data endpoint on the WVA.
|
void |
WVA.deleteFaultCodeAlarm(FaultCodeCommon.Bus bus,
FaultCodeCommon.FaultCodeType type,
String ecu,
WvaCallback<Void> callback)
Removes the alarm on the given fault code data on the WVA, by deleting
the alarm record on the device.
|
void |
WVA.deleteVehicleDataAlarm(String endpoint,
AlarmType type,
WvaCallback<Void> callback)
Removes the alarm on the given vehicle data endpoint on the WVA, by deleting
the alarm record on the device.
|
void |
WVA.fetchAllEcuElementValues(String ecuName,
WvaCallback<android.util.Pair<String,String>> callback)
Fetches all endpoints from a single ECU, calling the provided callback's
onResponse method with the data from every endpoint.
|
void |
WVA.fetchButtonNames(WvaCallback<Set<String>> onInitialized)
Asynchronously queries the WVA for the list of addressable buttons manageable by web services.
|
void |
WVA.fetchButtonState(String buttonName,
WvaCallback<Boolean> callback)
Asynchronously queries the WVA for the state of the given button.
|
void |
WVA.fetchEcuElements(String ecuName,
WvaCallback<Set<String>> callback)
Asynchronously queries the WVA for the list of data elements describing a specific engine control unit
(ECU) in the vehicle.
|
void |
WVA.fetchEcuElementValue(String ecuName,
String element,
WvaCallback<String> callback)
Asynchronously queries the WVA for the value of a specific element describing a specific ECU.
|
void |
WVA.fetchEcus(WvaCallback<Set<String>> onInitialized)
Asynchronously queries the WVA for the list of addressable ECUs in the vehicle.
|
void |
WVA.fetchFaultCode(FaultCodeCommon.Bus bus,
FaultCodeCommon.FaultCodeType type,
String ecu,
WvaCallback<FaultCodeResponse> callback)
Asynchronously queries the WVA for the most recent Diagnostic Trouble Code (DTC) report of
the given type
(active or inactive) on the given CAN bus.
|
void |
WVA.fetchFaultCodeEcuNames(FaultCodeCommon.Bus bus,
WvaCallback<Set<String>> callback)
Asynchronously queries the WVA for the list of ECUs that the system knows exist
on the given CAN bus, since they might be providing active or inactive DTC messages.
|
void |
WVA.fetchLedNames(WvaCallback<Set<String>> onInitialized)
Asynchronously queries the WVA for the list of addressable LEDs manageable by web services.
|
void |
WVA.fetchLedState(String ledName,
WvaCallback<Boolean> callback)
Asynchronously queries the WVA for the state of the given LED.
|
void |
WVA.fetchTime(WvaCallback<DateTime> callback)
Asynchronously queries the WVA for its current time.
|
void |
WVA.fetchVehicleData(String endpoint,
WvaCallback<VehicleDataResponse> callback)
Asynchronously queries the WVA for the newest data at the given endpoint.
|
void |
WVA.fetchVehicleDataEndpoints(WvaCallback<Set<String>> onInitialized)
Asynchronously queries the WVA for vehicle data endpoint names and populates the cache of
same.
|
void |
WVA.getConfiguration(String configPath,
WvaCallback<JSONObject> callback)
Fetches the current value of the given configuration item.
|
void |
WVA.isWVA(WvaCallback<Boolean> callback)
Attempts to determine whether the device with which we are communicating
is in fact a WVA.
|
void |
WVA.setLedState(String ledName,
boolean state,
WvaCallback<Boolean> callback)
Asynchronously sends a request to the WVA to set the state of the given LED.
|
void |
WVA.setTime(DateTime time,
WvaCallback<DateTime> callback)
Asynchronously sends a request to the WVA to set its time to match the given value.
|
void |
WVA.subscribeToFaultCodes(FaultCodeCommon.Bus bus,
FaultCodeCommon.FaultCodeType type,
String ecu,
int interval,
WvaCallback<Void> callback)
Subscribe to fault code information from the specified ECU on the WVA.
|
void |
WVA.subscribeToVehicleData(String endpoint,
int interval,
WvaCallback<Void> callback)
Subscribe to the given vehicle data endpoint on the WVA.
|
void |
WVA.unsubscribeFromFaultCodes(FaultCodeCommon.Bus bus,
FaultCodeCommon.FaultCodeType type,
String ecu,
WvaCallback<Void> callback)
Unsubscribes from the specified fault code information on the WVA, by deleting the
subscription record on the device.
|
void |
WVA.unsubscribeFromVehicleData(String endpoint,
WvaCallback<Void> callback)
Unsubscribes from the given endpoint on the WVA, by deleting the subscription record on
the device.
|
Modifier and Type | Method and Description |
---|---|
static <T> WvaCallback<T> |
WvaCallback.wrap(WvaCallback<T> callback,
android.os.Handler uiThread)
Normal library users should not need to call this method.
Used internally by the library to convert a normal callback into one where
onResponse is executed on the main thread. |
Modifier and Type | Method and Description |
---|---|
static <T> WvaCallback<T> |
WvaCallback.wrap(WvaCallback<T> callback,
android.os.Handler uiThread)
Normal library users should not need to call this method.
Used internally by the library to convert a normal callback into one where
onResponse is executed on the main thread. |