update
This commit is contained in:
parent
80f7d902fa
commit
baa2285244
4
test.py
4
test.py
|
@ -72,7 +72,7 @@ async def startup(username, device):
|
|||
await task_start(username, device)
|
||||
return BaseResponse(code=200, msg="success")
|
||||
except Exception as e:
|
||||
return BaseResponse(code=500, msg=e)
|
||||
return BaseResponse(code=500, msg=str(e))
|
||||
|
||||
|
||||
def push_stream(username, device):
|
||||
|
@ -90,4 +90,4 @@ def close_stream(username, device):
|
|||
if __name__ == '__main__':
|
||||
broker = 'mqtt.lihaink.cn'
|
||||
port = 1883
|
||||
uvicorn.run(app, host="127.0.0.1", port=8000)
|
||||
uvicorn.run(app, host="127.0.0.1", port=8001)
|
||||
|
|
Loading…
Reference in New Issue