Package org.nfctools.scio

Examples of org.nfctools.scio.TerminalMode


  public void addUrlToSend(String url) {
    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();
View Full Code Here


  public void addMessages(Collection<Record> ndefRecords, NdefPushFinishListener finishListener) {
    ndefPushLlcpService.addMessages(ndefRecords, finishListener);
  }

  public void runDemo() throws IOException {
    TerminalMode terminalMode = initiatorMode ? TerminalMode.INITIATOR : TerminalMode.TARGET;
    NfcAdapter nfcAdapter = new NfcAdapter(TerminalUtils.getAvailableTerminal(), 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.TerminalMode

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.