Page tree
Skip to end of metadata
Go to start of metadata

Protocol SDK


Example implementing OPC UA protocol:


Maven dependency



ReceiverEndpoint interface is provided to support implementation of custom protocol processing. One can implement connection to any device via any protocol and handle received data to a provided instance of a message processor.

java.util.ServiceLoader is used to load this implementation into the receiver. Basically, all that needs to be done is to create a file META-INF/services/com.belladati.iot.collector.generic.receiver.endpoint.ReceiverEndpoint that would contain fully qualified name of your implementation class, e.g.



Once this extension is bundled in a single JAR with all its dependencies (or you may add the dependencies to the classpath), the receiver can be started with altered command that would look like this

java -cp iot-collector-generic-receiver-prod.jar;iot-ext-1.0-SNAPSHOT-jar-with-dependencies.jar com.belladati.iot.collector.common.BellaDatiLauncher

instead of traditional java -jar.

  • No labels