This commit is contained in:
xyj 2024-01-03 14:25:39 +08:00
parent 80f7d902fa
commit baa2285244
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ async def startup(username, device):
await task_start(username, device) await task_start(username, device)
return BaseResponse(code=200, msg="success") return BaseResponse(code=200, msg="success")
except Exception as e: except Exception as e:
return BaseResponse(code=500, msg=e) return BaseResponse(code=500, msg=str(e))
def push_stream(username, device): def push_stream(username, device):
@ -90,4 +90,4 @@ def close_stream(username, device):
if __name__ == '__main__': if __name__ == '__main__':
broker = 'mqtt.lihaink.cn' broker = 'mqtt.lihaink.cn'
port = 1883 port = 1883
uvicorn.run(app, host="127.0.0.1", port=8000) uvicorn.run(app, host="127.0.0.1", port=8001)