我是新来的,正在寻求帮助。我试图在Alexa控制的RaspberryPi上获取GPIO。我想从代码中看到的return语句开始简单
from flask import Flask, render_template
from flask_ask import Ask, statement, convert_errors
import logging
app = Flask(__name__)
ask = Ask(app, '/')
if __name__ == '__main__'
app.run(host='0.0.0.0', port=443)
@ask.intent('MakeCoffeeIntent')
def MakeCoffeeIntent():
return statement('Kaffe executed')
一旦我尝试从Alexa网站执行该技能,我就会得到
127.0.0.1 - - [16/Jun/2019 06:58:48] "POST / HTTP/1.1" 400 -
127.0.0.1 - - [16/Jun/2019 06:58:49] "POST / HTTP/1.1" 200 -
和Alexa网站上的错误。我已经尝试了几个小时,却无法正常工作,希望您能为我提供帮助。