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)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue