Package ch.ethz.inf.vs.californium.observe

Examples of ch.ethz.inf.vs.californium.observe.ObserveRelation.check()


          LOGGER.fine("Response has error code "+response.getCode()+" and must be sent as CON");
          response.setType(Type.CON);
          relation.cancel();
        } else {
          // Make sure that every now and than a CON is mixed within
          if (relation.check()) {
            LOGGER.fine("The observe relation requires the notification to be sent as CON");
            response.setType(Type.CON);
          // By default use NON, but do not override resource decision
          } else if (response.getType()==null) {
            response.setType(Type.NON);
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.