示例#1
0
  public AutoSessionOBD(HybridSession hsession, EventCallback newParentOOBMessageHandler) {
    hs = hsession;
    mParentOOBMessageHandler = newParentOOBMessageHandler;

    // set session type to OBD. That's all we'll be doing here.
    hs.setActiveSession(HybridSession.SESSION_TYPE_OBD2);

    rs = new RoutineScan(hs.getOBDSession(), hs.getPIDDecoder());

    rs.addDPN("RPM");
    rs.addDPN("SPEED");

    msg("AutoSessionOBD initialized.");
  }
示例#2
0
 public void shutdown() {
   rs.removeAllDPNs();
 }