Exemplo n.º 1
0
 @Override
 protected ExecuteResponse doExecute(ExecuteRequest request) {
   LwM2mPath path = request.getPath();
   LwM2mInstanceEnabler instance = instances.get(path.getObjectInstanceId());
   if (instance == null) {
     return ExecuteResponse.notFound();
   }
   return instance.execute(path.getResourceId(), request.getParameters());
 }
Exemplo n.º 2
0
 @Override
 public ExecuteResponse execute(int resourceid, byte[] params) {
   System.out.println("Execute on resource " + resourceid + " params " + params);
   return ExecuteResponse.success();
 }