Package org.nfctools.nfcip

Examples of org.nfctools.nfcip.NFCIPConnection.receive()


        byte[] data = null;
        int runs = 0;
        do {
          log.trace("Start of Run: " + runs);
          data = nfcipConnection.receive();
          log.info("Received: " + data.length + " Runs: " + runs);
          nfcipConnection.send(data);
          log.trace("End of Run: " + runs);
          runs++;
        } while (data != null && data.length > 0);
View Full Code Here


          log.trace("Start of Run: " + runs);
          nfcipConnection.send(data);
          totalSend += data.length;
          log.info("Send: " + data.length + " Runs: " + runs);
          byte[] receive = nfcipConnection.receive();
          log.info("Response: " + receive.length);
          log.trace("End of Run: " + runs);
        }

        nfcipConnection.send(new byte[0]);
View Full Code Here

          log.info("Response: " + receive.length);
          log.trace("End of Run: " + runs);
        }

        nfcipConnection.send(new byte[0]);
        nfcipConnection.receive();

        double timeNeeded = (double)(System.currentTimeMillis() - time) / 1000.0;
        log.info("DONE in " + timeNeeded + "sec, " + df.format(((double)totalSend / 1024) / timeNeeded)
            + " kb/s");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.