update
This commit is contained in:
parent
90a3636ebd
commit
55d146bcdc
8
main.py
8
main.py
|
@ -113,8 +113,12 @@ async def register(request: Request):
|
|||
@app.post("/api/xumu/data/collect")
|
||||
async def process_data(request: Request):
|
||||
# TODO mqtt检测
|
||||
r = await request.body()
|
||||
print(r)
|
||||
data = await request.body()
|
||||
data = data.decode("utf-8")
|
||||
data = json.loads(data)
|
||||
print(data)
|
||||
|
||||
|
||||
return 200
|
||||
# try:
|
||||
# data = await request.body()
|
||||
|
|
Loading…
Reference in New Issue