Create IOT Device Edge Python Sdk

梦想与她 提交于 2019-12-11 03:04:49

问题


How can create IOT Edge Device? Actually i use azure sdk service iot and created normal device, but i can't figure out how create iot edge device with azure service client sdk.


回答1:


It would be similar to how you create a normal device, only difference is that you need to add a capabilities property:

{
  deviceId: "EdgeDevice1",
  capabilities: {
    iotEdge: true
  }
}

You could also refer to the code: https://github.com/Microsoft/vscode-azure-iot-toolkit/blob/4bfff9cb24cf5f7b42728640c4ed30bf2cda4253/src/deviceExplorer.ts#L61. It is based on Node Service SDK, but is should be similar to Python Service SDK.



来源:https://stackoverflow.com/questions/53127513/create-iot-device-edge-python-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!