deviceModbusTemperature.xml 2.61 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
<?xml version="1.0" encoding="iso-8859-1"?>
<Domain xmlns="http://www.onem2m.org/xml/sdt/4.0" xmlns:xi="http://www.w3.org/2001/XInclude" id="modbus" >
	<ModuleClasses>
		<ModuleClass name="temperature">  
			<Doc>This ModuleClass provides capabilities to represent the current temperature and target temperature of devices such as an air conditioner, refrigerator, oven, etc.</Doc>
			<Data>
				<DataPoint name="currentTemperature" readable="true" writable="false" eventable="true" optional="false">
					<Doc>The current temperature.</Doc>
					<DataType>
						<SimpleType type="float" />
					</DataType>
				</DataPoint>
				<DataPoint name="targetTemperature" readable="true" writable="true" eventable="true" optional="true">
					<Doc>The desired temperature to reach.</Doc>
					<DataType>
						<SimpleType type="float" />
					</DataType>
				</DataPoint>
				<DataPoint name="unit" readable="true" writable="false" eventable="true" optional="true">
					<Doc>The unit of measure for the temperature values. The default is Celsius (C).</Doc>
					<DataType>
						<SimpleType type="string" />
					</DataType>
				</DataPoint>
				<DataPoint name="minValue" readable="true" writable="false" eventable="true" optional="true">
					<Doc>Minimum value of "targetTemperature".</Doc>
					<DataType>
						<SimpleType type="float" />
					</DataType>
				</DataPoint>
				<DataPoint name="maxValue" readable="true" writable="false" eventable="true" optional="true">
					<Doc>Maximum value of "targetTemperature".</Doc>
					<DataType>
						<SimpleType type="float" />
					</DataType>
				</DataPoint>
				<DataPoint name="stepValue" readable="true" writable="false" eventable="true" optional="true">
					<Doc>Step value allowed for "targetTemperature".</Doc>
					<DataType>
						<SimpleType type="float" />
					</DataType>
				</DataPoint>
			</Data>
		</ModuleClass>
	</ModuleClasses>

	<DeviceClasses>
		<DeviceClass id="deviceModbusTemperature">
			<Doc>This is a test device.</Doc>
			<Properties>
				<Property name="address">
					<SimpleType type="string" />
				</Property>
				<Property name="functionCode">
					<SimpleType type="string" />
				</Property>
				<Property name="registers">
					<SimpleType type="string" />
				</Property>
				<Property name="slaveID">
					<SimpleType type="string" />
				</Property>
			</Properties>
			<ModuleClasses>

				<!-- If a device has more than one functionality some or all properties can be moved to the ModuleClass. -->
				
				<ModuleClass name="temperature">
					<Extend domain="modbus" entity="temperature" />
				</ModuleClass>
			</ModuleClasses>
		</DeviceClass>
	</DeviceClasses>
</Domain>