Search in sources :

Example 1 with N2KGateway

use of org.vesalainen.nmea.router.endpoint.n2kgw.N2KGateway in project NMEAParser by tvesalainen.

the class N2KGatewayT method test.

@Test
public void test() throws IOException, InterruptedException, ExecutionException {
    Path in = Paths.get("C:\\Users\\tkv\\share", "candump.txt");
    Path out = Paths.get("C:\\Temp", "can2nmea.txt");
    N2KGateway gw = N2KGateway.getInstance("can1", in, out, new CachedScheduledThreadPool());
    gw.startAndWait();
}
Also used : Path(java.nio.file.Path) N2KGateway(org.vesalainen.nmea.router.endpoint.n2kgw.N2KGateway) CachedScheduledThreadPool(org.vesalainen.util.concurrent.CachedScheduledThreadPool) Test(org.junit.Test)

Aggregations

Path (java.nio.file.Path)1 Test (org.junit.Test)1 N2KGateway (org.vesalainen.nmea.router.endpoint.n2kgw.N2KGateway)1 CachedScheduledThreadPool (org.vesalainen.util.concurrent.CachedScheduledThreadPool)1