public static void main(String[] args) throws IOException, ScraperException {
        ScraperConfiguration configuration = ScraperConfiguration.fromFile("plc4j/utils/scraper/src/test/resources/example_triggered_scraper_modbus.yml", ScraperConfigurationTriggeredImpl.class);
        PlcConnectionManager plcConnectionManager = CachedPlcConnectionManager.getBuilder().build();
        TriggeredScraperImpl scraper = new TriggeredScraperImpl(
            configuration,
            plcConnectionManager,
            (j, a, m) -> {
            LOGGER.info("Results from {}/{}: {}", j, a, m);
            for(Map.Entry<String, Object> entry:m.entrySet()){
                for(Object object:(List<Object>)entry.getValue()){
                    LOGGER.info("{}",object);
                }
            }
            },
            new TriggerCollectorImpl(plcConnectionManager));

        scraper.start();
    }
testing of TriggeredScraper vs real device (Modbus)
plc4j/tools/scraper/src/test/java/org/apache/plc4x/java/scraper/TriggeredScraperRunnerModbus.java