use of org.apache.plc4x.java.api.messages.PlcUnsubscriptionResponse in project plc4x by apache.
the class S7ProtocolLogic method unsubscribe.
@Override
public CompletableFuture<PlcUnsubscriptionResponse> unsubscribe(PlcUnsubscriptionRequest unsubscriptionRequest) {
CompletableFuture<PlcUnsubscriptionResponse> future = new CompletableFuture<>();
DefaultPlcUnsubscriptionRequest request = (DefaultPlcUnsubscriptionRequest) unsubscriptionRequest;
return future;
}
use of org.apache.plc4x.java.api.messages.PlcUnsubscriptionResponse in project plc4x by apache.
the class SimulatedConnection method unsubscribe.
@Override
public CompletableFuture<PlcUnsubscriptionResponse> unsubscribe(PlcUnsubscriptionRequest unsubscriptionRequest) {
LOGGER.info("unsubscribing {}", unsubscriptionRequest);
device.removeHandles(unsubscriptionRequest.getSubscriptionHandles());
PlcUnsubscriptionResponse response = new DefaultPlcUnsubscriptionResponse(unsubscriptionRequest);
return CompletableFuture.completedFuture(response);
}
Aggregations