Releases: aliyun/alibabacloud-iot-device-sdk
Releases · aliyun/alibabacloud-iot-device-sdk
1.2.4
修改名称为alibabacloud-iot-device-sdk
增加对微信小程序,支付宝小程序的支持,浏览器的支持 教程连接 ./docs
增加onService中reply函数,并支持同步和异步调用
// 假设物模型中有 wakeup_async的异步服务和wakeup_sync的同步服务,输出值都为out
// 异步方式回复
device.onService('wakeup_async', function (res,reply) {
// 处理服务参数
console.log('^onService',res);
reply({
"code": 200,
"data": {out:1}
});
})
// 同步方式回复
device.onService('wakeup_sync', function (res,reply) {
// 处理服务参数
console.log('^onService',res);
reply({
"code": 200,
"data": {out:1}
},'sync');
})
增加onConfig方法用于订阅云端远程配置更新
增加部分功能的example
重写了网关子设备subdevice的实现
修改名称为alibabacloud-iot-device-sdk
v1.1.0
弃用