plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Bug]: Except for wifiName, all else are NULL.

Open LiveRock opened this issue 2 years ago • 4 comments

Platform

MacOS 12.5

Plugin

network_info_plus

Version

2.1.4+1

Flutter SDK

3.0.5

Steps to reproduce

final info = NetworkInfo(); String? wifiName = await info.getWifiName(); // FooNetwork String? wifiBSSID = await info.getWifiBSSID(); // 11:22:33:44:55:66 String? wifiIP = await info.getWifiIP(); // 192.168.1.43 String? wifiIPv6 = await info.getWifiIPv6(); // 2001:0db8:85a3:0000:0000:8a2e:0370:7334 String? wifiSubmask = await info.getWifiSubmask(); // 255.255.255.0 String? wifiBroadcast = await info.getWifiBroadcast(); // 192.168.1.255 String? wifiGateway = await info.getWifiGatewayIP(); // 192.168.1.1

Except for wifiName, all else are NULL.

Code Sample

final info = NetworkInfo();
  String? wifiName = await info.getWifiName(); // FooNetwork
  String? wifiBSSID = await info.getWifiBSSID(); // 11:22:33:44:55:66
  String? wifiIP = await info.getWifiIP(); // 192.168.1.43
  String? wifiIPv6 =
      await info.getWifiIPv6(); // 2001:0db8:85a3:0000:0000:8a2e:0370:7334
  String? wifiSubmask = await info.getWifiSubmask(); // 255.255.255.0
  String? wifiBroadcast = await info.getWifiBroadcast(); // 192.168.1.255
  String? wifiGateway = await info.getWifiGatewayIP(); // 192.168.1.1

Logs

[+11624 ms] flutter: Scan Network
[        ] flutter: Scan Network Pressed
[   +1 ms] flutter: selectedMeterHiveBox = 794us-2022-08-08-meters isLoadfromConnectedDevice: true
[   +1 ms] flutter: scanNetwork4VT called
[  +33 ms] flutter: wifiName: Jedimaster 6 
[        ] wifiIP: null 
[        ] wifiGateway: null 
[        ] wifiIPv6: null

Flutter Doctor

flutter doctor -v
[✓] Flutter (Channel stable, 3.0.5, on macOS 12.5 21G72 darwin-arm, locale en-GB)
    • Flutter version 3.0.5 at /Users/peterlum/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (4 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/peterlum/Library/Android/sdk
    • Platform android-32, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio M1.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] Android Studio (version 2020.3)
    • Android Studio at /Volumes/HagibisData/Download/edge/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] Android Studio (version 2.3)
    • Android Studio at /Volumes/NVME-970-EVO-1TB/Temp/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Android Studio (version 4.1)
    • Android Studio at /Volumes/NVME-970-EVO-1TB/Temp/Applications/Android Studio 3.3.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.70.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.46.0

[✓] VS Code (version 1.55.2)
    • VS Code at /Volumes/NVME-970-EVO-1TB/Temp/Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.46.0

[✓] VS Code (version 1.69.1)
    • VS Code at /Volumes/HagibisData/Download/edge/Visual Studio Code.app/Contents
    • Flutter extension version 3.46.0

[✓] VS Code (version 1.57.0-insider)
    • VS Code at /Volumes/HagibisData/Download/safari/Visual Studio Code - Insiders.app/Contents
    • Flutter extension version 3.44.0

[✓] Connected device (1 available)
    • macOS (desktop) • macos • darwin-arm64 • macOS 12.5 21G72 darwin-arm

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

LiveRock avatar Aug 11 '22 05:08 LiveRock

Hello, LiveRock ...have you solved the problem? I also encountered the same problem as you.

ArthitNam avatar Sep 02 '22 03:09 ArthitNam

Still facing the same issue ; no response from the creator yet

LiveRock avatar Sep 02 '22 13:09 LiveRock

Anyone?

LiveRock avatar Sep 10 '22 08:09 LiveRock

@LiveRock don't expect any quick response, there's no one working actively in this issue afaik. However, you are more than welcome on trying to fix and submitting a PR.

miquelbeltran avatar Sep 10 '22 20:09 miquelbeltran

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Dec 28 '22 00:12 github-actions[bot]