YueChen-C / py-ios-device

IOS Professional Performance Testing Tool . You can get CPU, GPU, Memory , Lifecycle and other metrics from real iOS devices . IOS 专业性能测试工具
GNU General Public License v3.0
634 stars 179 forks source link

支持 wifi连接吗 #46

Open zkj3e opened 2 years ago

zkj3e commented 2 years ago

目前支持 wifi 无线连接吗

lycfr commented 2 years ago

同问,我看接口文档里面有说,但是源码调用的时候找不到

shijie93 commented 2 years ago

同问

xlhe3 commented 1 year ago
def get_devices(self, network=None):
    payload = {
        "MessageType": "ListDevices",
        "ClientVersionString": "libusbmuxd 1.1.0",
        "kLibUSBMuxVersion": 3,
    }
    devices = self.listener.exchange('ListDevices', payload)
    for device in devices.get('DeviceList'):
        if not network and device['Properties']['ConnectionType'] == 'Network':
            continue

把这个continue部分拿掉