在 oneM2M 中控制灯组
Controlling Group Of Lights in oneM2M
如果 IN-AE 使用 ADN-AE1 和 ADN-AE2 创建一组灯,并仅使用一个请求来控制它们会怎样?该图显示,它使用一个请求来控制它们,但是当我单击 request example 时,它会一个一个地创建 。是否有任何示例表明我可以仅通过一个请求来控制一组资源,或者这不在 oneM2M 的范围内?
Call flows for multiple light control are depicted in the figure below
and are ordered as follows:
When the user updates a group of light states on her/his smartphone,
the IN-AE creates a new contentInstance targeting a group of Light
ADN-AE container resources hosted on the MN-CSE. Request shown here
For each contentInstances created successfully, the MN-CSE sends a
notification to the corresponding Light ADN-AE.
--------------------------------编辑-------- ----------------------
资源捆绑并管理多个资源(相同或混合资源类型),在您的示例中是 ADN-AE1 和 ADN-AE2 下的两个 。
除了它的其他属性之外, 还有一个名为 的虚拟资源。此虚拟资源在内部倍增它收到的对 的所有合适资源的每个请求,无论是 CREATE、READ、UPDATE 还是 DELETE。
在示例中,在被组织成一个组之前就已经存在,可以独立访问和控制。 资源现在将它们捆绑在一起,并使它们作为单个实体可用于应用程序。当此 收到对 的 CREATE 请求时,该组会自动为其所有资源创建一个新的 资源。但是,对于 ADN-AE, 的创建者和创建方式并不重要。
有趣的是,这将 IN-AE 应用程序与基础设施的实际部署和编排分离。想象一下 将家中所有的灯都捆绑起来。这个 由一个 home manager AE 管理。现在,另一个 AE,用于在居民离开时管理家庭,不需要了解家庭中的实际设备。它只需要向资源发送一个请求来关闭所有的灯。
更新
检查 oneM2M 的 "TS-0001 - Functional Architecture",“9.6.13 - 资源类型组”部分的 和“9.6.14 - 资源类型 fanOutPoint”部分的 以了解此行为的规范。
如果 IN-AE 使用 ADN-AE1 和 ADN-AE2 创建一组灯,并仅使用一个请求来控制它们会怎样?该图显示,它使用一个请求来控制它们,但是当我单击 request example 时,它会一个一个地创建
Call flows for multiple light control are depicted in the figure below and are ordered as follows:
When the user updates a group of light states on her/his smartphone, the IN-AE creates a new contentInstance targeting a group of Light ADN-AE container resources hosted on the MN-CSE. Request shown here
For each contentInstances created successfully, the MN-CSE sends a notification to the corresponding Light ADN-AE.
--------------------------------编辑-------- ----------------------
除了它的其他属性之外,
在示例中,
有趣的是,这将 IN-AE 应用程序与基础设施的实际部署和编排分离。想象一下
更新
检查 oneM2M 的 "TS-0001 - Functional Architecture",“9.6.13 - 资源类型组”部分的