private void onDeviceDiscovery() throws InterruptedException, PlcConnectionException {
        ProfinetPlcDiscoverer discoverer = new ProfinetPlcDiscoverer(profinetDriverContext.getChannel());
        profinetDriverContext.getChannel().setDiscoverer(discoverer);
        DefaultPlcDiscoveryRequest request = new DefaultPlcDiscoveryRequest(discoverer, new LinkedHashMap<>());
        discoverer.ongoingDiscoverWithHandler(request, profinetDriverContext.getHandler(), 5000L, 30000L);
        waitForDeviceDiscovery();
    }
Start a PN or LLDP discovery to find PN devices on the network.
We pass in a driverContext handler, that checks if an incoming response has the information needed for
connecting. It just ignores the rest ...

@throws InterruptedException
@throws PlcConnectionException
plc4j/drivers/profinet/src/main/java/org/apache/plc4x/java/profinet/protocol/ProfinetProtocolLogic.java