Package | Description |
---|---|
com.digi.wva | |
com.digi.wva.async |
Callbacks on UI thread
|
Modifier and Type | Method and Description |
---|---|
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.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.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.
|
FaultCodeResponse |
WVA.getCachedFaultCode(FaultCodeCommon.Bus bus,
FaultCodeCommon.FaultCodeType type,
String ecu)
Synchronously returns the last fault code received by this library for a
given ECU.
|
void |
WVA.removeFaultCodeListener(FaultCodeCommon.Bus bus,
FaultCodeCommon.FaultCodeType type,
String ecu)
Removes any
FaultCodeListener that has been set to be
invoked on new fault code data matching the given bus, type and ECU. |
void |
WVA.setFaultCodeListener(FaultCodeCommon.Bus bus,
FaultCodeCommon.FaultCodeType type,
String ecu,
FaultCodeListener listener)
Sets the
FaultCodeListener to be invoked when a new fault code event, matching the
given bus, type and ECU, arrives via the event channel. |
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.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.
|
Modifier and Type | Method and Description |
---|---|
FaultCodeCommon.Bus |
FaultCodeEvent.getBus()
Gets the CAN bus that reported this data
|
static FaultCodeCommon.Bus |
FaultCodeCommon.Bus.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FaultCodeCommon.Bus[] |
FaultCodeCommon.Bus.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static String |
FaultCodeCommon.createEcuPath(FaultCodeCommon.Bus bus,
FaultCodeCommon.FaultCodeType type,
String ecu)
Given the bus, message type, and ECU name, return the
vehicle/dtc/ sub-path to the
specified ECU data. |
static String |
FaultCodeCommon.createUri(FaultCodeCommon.Bus bus,
FaultCodeCommon.FaultCodeType type,
String ecu)
Given the bus, message type, and ECU name, return the full web services path to the specified ECU
data.
|