public class Elm327Streams
extends java.lang.Object
Constructor and Description |
---|
Elm327Streams() |
Modifier and Type | Method and Description |
---|---|
static TStream<com.google.gson.JsonArray> |
poll(SerialDevice device,
long period,
java.util.concurrent.TimeUnit unit,
Cmd... cmds)
Periodically execute a number of ELM327 commands.
|
public static TStream<com.google.gson.JsonArray> poll(SerialDevice device, long period, java.util.concurrent.TimeUnit unit, Cmd... cmds)
command identifier
with key pid
and any result set by the individual command, typically with
the key value
.device
- Serial device the ELM327 is connected to.period
- Period to poll.unit
- Unit of period
.cmds
- Commands to execute.Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641