<?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>