android - 在azure iot Central的执行命令链接中哪里可以找到组件 key

标签 android azure azure-iot-central

**[11:12] 乌默·萨利姆 正在处理它,先生在这个示例中链接了组件名称是什么以及如何找到它 POST https://{子域名}.{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”。它们是您的接口(interface)的名称。

关于android - 在azure iot Central的执行命令链接中哪里可以找到组件 key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61673236/

相关文章:

Android OpenGLES 渲染到纹理

linux - 如何从 azure 自动化证书中获取公钥

java - 从一个 Activity 传递到另一个 Activity 时,int/string 值变为 "0"/null

android - 如何检测添加到联系人数据库的新联系人

Azure DevOps 定义 yml 构建文件的路径过滤器

Azure 表存储(表服务 REST API)SharedKeyLite 不起作用

azure - IoT Central 到 Blob 存储数据加密遥测数据主体

azure - 云端Raspberry pi传感器数据监控

azure - 通过 MQTT 向 Azure IotCentral 发送消息

java - 安卓 : getParams() called two times dont know why?