Closed mortenboye closed 4 years ago
Using the wifi example code, scanning for wifi networks (on ubuntu) fails to set device types in client.devices. Reverting to 0.0.0-dev.1 and changing NetworkManagerDeviceType to DeviceType works.
client.devices
NetworkManagerDeviceType
DeviceType
On dev.1: client.devices.forEach((device) { print('device ${device.deviceInterfaceName} ${device.deviceType} ${device.hwAddress} ${device.state}'); }); results in flutter: device org.freedesktop.NetworkManager.Device DeviceType.generic null DeviceState.unmanaged flutter: device org.freedesktop.NetworkManager.Device DeviceType.ethernet null DeviceState.unavailable flutter: device org.freedesktop.NetworkManager.Device DeviceType.wifi null DeviceState.activated
client.devices.forEach((device) { print('device ${device.deviceInterfaceName} ${device.deviceType} ${device.hwAddress} ${device.state}'); });
flutter: device org.freedesktop.NetworkManager.Device DeviceType.generic null DeviceState.unmanaged flutter: device org.freedesktop.NetworkManager.Device DeviceType.ethernet null DeviceState.unavailable flutter: device org.freedesktop.NetworkManager.Device DeviceType.wifi null DeviceState.activated
whereas dev.2 gives: flutter: device org.freedesktop.NetworkManager.Device NetworkManagerDeviceType.unknown null NetworkManagerDeviceState.unmanaged flutter: device org.freedesktop.NetworkManager.Device NetworkManagerDeviceType.unknown null NetworkManagerDeviceState.unavailable flutter: device org.freedesktop.NetworkManager.Device NetworkManagerDeviceType.unknown null NetworkManagerDeviceState.activated
flutter: device org.freedesktop.NetworkManager.Device NetworkManagerDeviceType.unknown null NetworkManagerDeviceState.unmanaged flutter: device org.freedesktop.NetworkManager.Device NetworkManagerDeviceType.unknown null NetworkManagerDeviceState.unavailable flutter: device org.freedesktop.NetworkManager.Device NetworkManagerDeviceType.unknown null NetworkManagerDeviceState.activated
Using the wifi example code, scanning for wifi networks (on ubuntu) fails to set device types in
client.devices
. Reverting to 0.0.0-dev.1 and changingNetworkManagerDeviceType
toDeviceType
works.On dev.1:
client.devices.forEach((device) { print('device ${device.deviceInterfaceName} ${device.deviceType} ${device.hwAddress} ${device.state}'); });
results influtter: device org.freedesktop.NetworkManager.Device DeviceType.generic null DeviceState.unmanaged flutter: device org.freedesktop.NetworkManager.Device DeviceType.ethernet null DeviceState.unavailable flutter: device org.freedesktop.NetworkManager.Device DeviceType.wifi null DeviceState.activated
whereas dev.2 gives:
flutter: device org.freedesktop.NetworkManager.Device NetworkManagerDeviceType.unknown null NetworkManagerDeviceState.unmanaged flutter: device org.freedesktop.NetworkManager.Device NetworkManagerDeviceType.unknown null NetworkManagerDeviceState.unavailable flutter: device org.freedesktop.NetworkManager.Device NetworkManagerDeviceType.unknown null NetworkManagerDeviceState.activated