Package org.nfctools.scio

Examples of org.nfctools.scio.Terminal


    snepClient.setSnepAgentListener(new SnepAgentListenterImpl(url));
  }

  public void runDemo(boolean initiatorMode, String preferredTerminalName) throws IOException {
    TerminalMode terminalMode = initiatorMode ? TerminalMode.INITIATOR : TerminalMode.TARGET;
    Terminal terminal = TerminalUtils.getAvailableTerminal(preferredTerminalName);
    System.out.println("Using: " + terminal.getTerminalName());
    NfcAdapter nfcAdapter = new NfcAdapter(terminal, terminalMode);
    nfcAdapter.setNfcipConnectionListener(llcpOverNfcip);
    nfcAdapter.startListening();
    System.out.println("Mode: " + terminalMode);
    System.out.println("Waiting for P2P, press ENTER to exit");
View Full Code Here

TOP

Related Classes of org.nfctools.scio.Terminal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.