B.2 Example for thermometer device
B.2.1 Example for Device model 'deviceThermometer'
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
B.2.2 Example for ModuleClass 'temperature'
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
Figure B.2.2-2: Example contents of noDNproperties