[英]Creating Azure iot-hub and device on it using node.js code
I am creating java script website to create to the Azure iot-hub and create device on azure iot-hub.我正在创建 java 脚本网站以创建到 Azure 物联网集线器并在 azure 物联网集线器上创建设备。 Is there any way to do this using node.js code.
有没有办法使用 node.js 代码来做到这一点。 Like creation of azure-iot-hub and device should be hidden to the user of the website.
像 azure-iot-hub 和设备的创建应该对网站的用户隐藏。
Azure iot-hub should be created using code rather than creating manually by signing into azure portal. Azure iot-hub 应该使用代码创建,而不是通过登录 azure 门户手动创建。
The management API for IoTHub is all RESTful, so you can use Javascript library like fetch to manage resources. IoTHub的管理API都是RESTful的,所以可以使用fetch之类的Javascript库来管理资源。
https://learn.microsoft.com/en-us/rest/api/iothub/iot-hub-resource/create-or-update https://learn.microsoft.com/en-us/rest/api/iothub/iot-hub-resource/create-or-update
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.