Android 在哪里可以找到azure iot central执行命令链接中的组件密钥

Android 在哪里可以找到azure iot central执行命令链接中的组件密钥,android,azure,azure-iot-central,Android,Azure,Azure Iot Central,**[11:12]Umer Saleem 先生,在这个例子中,链接什么是组件名称以及如何找到它 POST https://{subdomain}.{centralDnsSuffixInPath}/api/preview/devices/{device_id}/components/{component_name}/commands/{command_name} **要了解此设备的组件,您可以执行GET请求 https://{subdomain}.{centralDnsSuffixInPath}/

**[11:12]Umer Saleem 先生,在这个例子中,链接什么是组件名称以及如何找到它 POST https://{subdomain}.{centralDnsSuffixInPath}/api/preview/devices/{device_id}/components/{component_name}/commands/{command_name}
**

要了解此设备的组件,您可以执行GET请求

https://{subdomain}.{centralDnsSuffixInPath}/api/preview/devices/{device_id}/components/
这将向您显示组件,示例响应可以是:

{
"value": [
    {
        "@id": "urn:machine:MyMachine:lxhc64xu:1",
        "@type": [
            "InterfaceInstance"
        ],
        "name": "cb_7d7",
        "displayName": "Interface"
    },
    {
        "@id": "urn:machine:MyMachine:_lyh_e2x:1",
        "@type": [
            "InterfaceInstance"
        ],
        "name": "cb_282",
        "displayName": "Properties"
    }
]
}


{component}的名称是您在响应中获得的值的名称。在我的示例中,可以使用“cb_7d7”或“cb_282”。它们是您接口的名称。

要了解此设备的组件,您可以执行GET请求

https://{subdomain}.{centralDnsSuffixInPath}/api/preview/devices/{device_id}/components/
这将向您显示组件,示例响应可以是:

{
"value": [
    {
        "@id": "urn:machine:MyMachine:lxhc64xu:1",
        "@type": [
            "InterfaceInstance"
        ],
        "name": "cb_7d7",
        "displayName": "Interface"
    },
    {
        "@id": "urn:machine:MyMachine:_lyh_e2x:1",
        "@type": [
            "InterfaceInstance"
        ],
        "name": "cb_282",
        "displayName": "Properties"
    }
]
}


{component}的名称是您在响应中获得的值的名称。在我的示例中,可以使用“cb_7d7”或“cb_282”。它们是您接口的名称。

Matthijs van der Veer您还可以告诉我如何从azure iot central中的api获取最新的sesnor值吗?当然可以,你可以在这里找到API定义:它还有一个示例请求。Matthijs van der Veer你还可以告诉我如何从azure iot central中的API获取最新的sesnor值吗?当然,你可以在这里找到API定义:它还有一个示例请求。我的回答对你有帮助吗?你能将它标记为已接受或帮助我改进它吗?我的回答对你有帮助吗?你能将它标记为已接受或帮助我改进它吗?