canonical / nm.dart

Native Dart client library to access NetworkManager on Linux.
https://pub.dev/packages/nm
Mozilla Public License 2.0
29 stars 11 forks source link

Scaning for Wifi fails in 0.0.0-dev.2 #4

Closed mortenboye closed 4 years ago

mortenboye commented 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.

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

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