Being too excited about the fact that OWAPI code started working again, I forgot to mention how to configure it for use with not just loggers, but to actually do something useful. Here:<bean id="device_factory"
class="net.sf.dz3.device.sensor.impl.onewire.DeviceFactory"
init-method="start">
<constructor-arg index="0" value="/dev/ttyUSB0"/>
<constructor-arg index="1" value="regular"/>
</bean>
<bean id="temperature_sensor-6500000055FF1A26"
factory-bean="device_factory"
factory-method="getTemperatureSensor">
<constructor-arg value="6500000055FF1A26"/>
</bean>
The temperature_sensor-6500000055FF1A26
bean can be used in further configuration as usual.
NOTE: If you're inclined to fiddle with configuration before the GUI configurator is out, you might just as well get familiar with Spring Framework, if you aren't already. A powerful tool. All you need for now is the IoC container configuration.
Saturday, November 14, 2009
DZ3 Configuration: 1-Wire Sensors
Posted by vt at 11/14/2009 11:09:00 AM
Labels: 1-Wire, configuration, DZ3
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment