Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

断掉usb之后atxAgent停止 #89

Open
jack-296 opened this issue Nov 11, 2021 · 0 comments
Open

断掉usb之后atxAgent停止 #89

jack-296 opened this issue Nov 11, 2021 · 0 comments

Comments

@jack-296
Copy link

我想用PC通过wifi控制手机,但是usb一断开,atxAgent就会停止服务,运行脚本会报以下错误
File "test.py", line 7, in
d = u2.connect_wifi("10.1.42.109")
File "D:\design\python\lib\site-packages\uiautomator2_init_.py", line 1958, in connect_wifi
raise ConnectError("addr is invalid or atx-agent is not running", addr)
uiautomator2.exceptions.ConnectError: ('addr is invalid or atx-agent is not running', '10.1.42.109')

usb重新接上之后,通过命令adb shell /data/local/tmp/atx-agent server -d启动后又可以使用wifi连接

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant