master
Michael Traeger 2017-11-27 20:19:04 +01:00
parent 4c11796157
commit 85e2fffb7f
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ app.debug = True
@app.route("/") @app.route("/")
def hello(): def hello():
return "Hello ESP8266!" return "Hello ESP8266!"
@app.route("/id/<id:id>", methods=['GET','POST']) @app.route("/id/<id>", methods=['GET','POST'])
def log(id): def log(id):
app.logger.info("%s was here and delivered '%s'", id, request.data.decode("utf8")) app.logger.info("%s was here and delivered '%s'", id, request.data.decode("utf8"))
return "You were here!" return "You were here!"