创建IOT设备边缘Python Sdk [英] Create IOT Device Edge Python Sdk
本文介绍了创建IOT设备边缘Python Sdk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何创建物联网边缘设备? 实际上,我使用azure sdk服务iot并创建了普通设备,但是我不知道如何使用azure服务客户端sdk创建物联网边缘设备.
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.
推荐答案
这与创建普通设备的方式类似,唯一的区别是您需要添加capabilities
属性:
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.
这篇关于创建IOT设备边缘Python Sdk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文