javascript - awsIot.thingShadow 不是函数
问题描述
我正在使用 github https://github.com/h3smith/aws-iot-alexa尝试将 alexa 技能连接到 rasberry pi。运行 iot.js 代码时,我得到 TypeError: awsIot.thingShadow is not a function
var thingShadows = awsIot.thingShadow({
keyPath: '{local-private-key-name}',
certPath: '{local-cert-name}',
caPath: '{local-root-ca-name}',
clientId: myThingName,
region: '{aws-region}'
});
这是包含该语句的代码块
解决方案
推荐阅读
- java - Spring data JPA 本机查询返回 1 个实体,而不是列表
- matlab - 计算欧几里得距离
- javascript - 为什么在 TypeScript 中使用三等号 (===)?
- google-bigquery - Bigquery 数据传输按需触发
- android - 如何使用模糊库获得直接位图结果
- javascript - 如何在 FullCalendarV4 和 Vue.js 中为事件删除按钮添加删除功能
- javascript - 最内部元素上的调度事件不会导致上层元素冒泡?
- bash - 多个条件总是返回正数
- flutter - Flutter CupertinoPicker 不渲染
- javascript - dijit 中的按钮样式混乱