private static ExecuteRequest er = new ExecuteRequest();
Registration registration = server.getRegistrationService().getByEndpoint(clientEndpoint); if (registration != null) { ExecuteRequest request = new ExecuteRequest(target, IOUtils.toString(req.getInputStream())); ExecuteResponse cResponse = server.send(registration, request, TIMEOUT); processDeviceResponse(req, resp, cResponse);
return new ExecuteRequest(path, parameters); case "writeAttributes": { String observeSpec = o.getString("observeSpec", null);
return new ExecuteRequest(path, parameters); case "writeAttributes": { String observeSpec = o.getString("observeSpec", null);
byte[] payload = exchange.getRequestPayload(); ExecuteResponse response = nodeEnabler.execute(identity, new ExecuteRequest(URI, payload != null ? new String(payload) : null)); if (response.getCode().isError()) { exchange.respond(toCoapResponseCode(response.getCode()), response.getErrorMessage());