Skip to content

Instantly share code, notes, and snippets.

@vongohren
Created December 7, 2013 17:07
Show Gist options
  • Save vongohren/7845460 to your computer and use it in GitHub Desktop.
Save vongohren/7845460 to your computer and use it in GitHub Desktop.
My DS component.xml
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="ModelFartSensorDriver">
<implementation class="model.fartsensor.ModelFartSensor"/>
<reference bind="setServerApi" cardinality="1..1" interface="ntnu.opcua.server.api.ServerApi" name="ServerApi" policy="static" unbind="unsetServerApi"/>
<reference bind="setFartSensor" cardinality="1..1" interface="hardware.driver.api.HardwareAPI" name="HardwareAPI" policy="static" target="(hardware=fartsensor)" unbind="unsetFartSensor"/>
<service>
<provide interface="org.osgi.service.event.EventHandler"/>
</service>
<property name="event.topics" value="ntnu/opcua/server/STARTED"/>
<reference bind="setNameSpaceController" cardinality="1..1" interface="ntnu.opcua.namespace.controller.api.NameSpaceControllerAPI" name="NameSpaceControllerAPI" policy="static" unbind="unsetNameSpaceController"/>
</scr:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment