oneM2M TS-0040Release Notes diff from v5.0.3 to v5.0.2The IPE constructs oneM2M resource tree on hosting CSE from the SDT schemas derived from the set of functionalities of Modbus devices.
The present clause gives an example of how to use the oneM2M resource tree to represent a Modbus device (i.e. Thermometer).
The next clause explains the creation process for an arbitrary thermometer device that communicates over Modbus. As the Modbus devices are firstly represented by SDT models, the SDT definition of the thermometer device described in clause 5.5.45 of oneM2M TS0023 [3] will be considered.
Mapping of the SDT Device model to oneM2M resources is performed according to the general mapping procedure described in clause 6.2.2 of oneM2M TS0023 [3]. Figure B.2.1‑1 shows an example of the [deviceThermometer], which is modelled as a <flexContainer> resource specialization derived from the corresponding SDT Device component.
![Figure B.2.1-1: Structure of [deviceThermometer] resource](media/B.2.1-1.png)
Figure B.2.1‑1: Structure of [deviceThermometer] resource
The SDT model of the 'temperature' ModuleClass is described in the clause 5.3.76 of oneM2M TS0023 [3]. Assume the DataPoints of the 'temperature' ModuleClass are created according to the mapping rule described in clause 6.2.2.
Mapping of the SDT ModuleClass model to oneM2M resources is performed according to the general mapping procedure described in clause 6.2.3 of oneM2M TS0023 [3]. The 'temperature' ModuleClass is mapped into [temperature], a <flexContainer> resource specialization, and its data points are mapped into customAttributes of that <flexContainer> resource specialization; and nodnProperties customAttribute is added the [temperature] as described in clause 6.2.3. Figure B.2.2‑1 shows the structure of [temperature].
The example contents of nodnProperties are shown on Figure B.2.2‑2.
![Figure B.2.2-1: Structure of [temperature] resource](media/B.2.2-1.png)
Figure B.2.2‑1: Structure of [temperature] resource


Figure B.2.2‑2: Example contents of noDNproperties