Search found 1 match

by heiy1996
Sat Jun 10, 2023 11:58 am
Forum: ESP-ADF 中文讨论版
Topic: 请问如何使用flask替换pipeline_raw_http示例中的server.py?
Replies: 0
Views: 2156

请问如何使用flask替换pipeline_raw_http示例中的server.py?

您好,我正在尝试将pipeline_raw_http示例对接到flask 服务器上,按照server.py重构后的代码如下: import datetime import wave from flask import Flask, request, Response import sys app = Flask(__name__) def _get_chunk_size(): data = request.stream.read(2) print(type(data)) while data[-2:] != b"\r\n": data += request.stream.read(1) ret...