这是Flash python raspberry pi代码,用于ESP32的HTTP POST 一个
from flask import Flask, request
app = Flask(__name__)
@app.route('/post', methods = ["POST"])
def post():
print(request.data)
return ''
app.run(host='0.0.0.0', port= 8090)
这是Web服务器的代码-
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello world'
if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0')
如何将它们合并在一起,以在网站上查看POST数据?