Package org.nfctools.llcp.parameter

Examples of org.nfctools.llcp.parameter.LinkTimeOut


    assertEquals(1023, miux.getValue());

    WellKnownServiceList wks = (WellKnownServiceList)parameter[pId++];
    assertEquals(0xffff, wks.getValue());

    LinkTimeOut lto = (LinkTimeOut)parameter[pId++];
    assertEquals(255, lto.getValue());

    ServiceName serviceName = (ServiceName)parameter[pId++];
    assertEquals("com.android.npp", serviceName.getName());

  }
View Full Code Here


        Miux miux = (Miux)param;
        miuExtension = Math.min(PREFERRED_MIUX, miux.getValue());
        log.info("LLCP Miux: " + miux.getValue() + ", agreed on " + miuExtension);
      }
      else if (param instanceof LinkTimeOut) {
        LinkTimeOut lto = (LinkTimeOut)param;
        linkTimeOut = lto.getValue() * 10;
        log.info("LLCP Link Timeout: " + linkTimeOut + " ms");
      }
    }
    log.info("All params parsed: " + parameters.length);
  }
View Full Code Here

        case PduConstants.PARAM_WKS:
          int wks = (pduData[offset + 2] & 0xFF) << 8 | (pduData[offset + 3] & 0xFF);
          params.add(new WellKnownServiceList(wks));
          break;
        case PduConstants.PARAM_LTO:
          params.add(new LinkTimeOut(pduData[offset + 2] & 0xFF));
          break;
        case PduConstants.PARAM_RW:
          params.add(new ReceiveWindowSize(pduData[offset + 2] & 0x0F));
          break;
        case PduConstants.PARAM_OPT:
View Full Code Here

TOP

Related Classes of org.nfctools.llcp.parameter.LinkTimeOut

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.