首页 > 解决方案 > 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}'
});

这是包含该语句的代码块

标签: javascriptamazon-web-servicesalexa

解决方案


推荐阅读