chrisdutz commented on a change in pull request #14: WIP: Api Refactoring URL: https://github.com/apache/incubator-plc4x/pull/14#discussion_r213980452
########## File path: integrations/apache-camel/src/main/java/org/apache/plc4x/camel/Plc4XConsumer.java ########## @@ -112,25 +114,25 @@ private PlcSubscriber getSubscriber() { } @Override - public void accept(SubscriptionEventItem subscriptionEventItem) { - LOGGER.debug("Received {}", subscriptionEventItem); + public void accept(PlcSubscriptionEvent plcSubscriptionEvent) { + LOGGER.debug("Received {}", plcSubscriptionEvent); try { Exchange exchange = endpoint.createExchange(); - exchange.getIn().setBody(unwrapIfSingle(subscriptionEventItem.getValues())); + exchange.getIn().setBody(unwrapIfSingle(plcSubscriptionEvent.getAllObjects("default"))); Review comment: I have to give everything a name ... so I just chose one ... ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services