赞
踩
安装express .命令 npm install express
安装alibabacloud-iot-device-sdk 命令 npm install alibabacloud-iot-device-sdk.
使用云流转,实现两个设备的互通(云流转操作看之前的博客)
代码:
const express = require('express')
const app = express()
const iot = require('alibabacloud-iot-device-sdk')
var params;
const device = iot.device({
productKey: "****",
deviceName: "****",
deviceSecret: "*********",
brokerUrl
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。