PhilipsHue / flutter_reactive_ble

Flutter library that handles BLE operations for multiple devices.
https://developers.meethue.com/
Other
667 stars 331 forks source link

scanForDevices() returns incorrect input #666

Open akashShanmugraj opened 1 year ago

akashShanmugraj commented 1 year ago

Describe the bug I am building an application which prints ID, Name, RSSI and ServiceUUID of available BLE's


  void bleScanner() {
    print('Into the function bleScanner()');
    final flutterReactiveBle = FlutterReactiveBle();
    flutterReactiveBle.scanForDevices(withServices: []).listen(
      (device) {
        print('The program found some devices!');
        print(
            "${device.id}, ${device.name}, ${device.rssi}, ${device.serviceUuids}");
      },
    );
  }

This application runs fine, but if I simulate an iBeacon in my phone, the generated UUID does not show up in the output.

Smartphone / tablet

Peripheral device

JulianAtTroido commented 1 year ago

Might be related to this Stackoverflow

For further information, see my comment here: https://github.com/PhilipsHue/flutter_reactive_ble/issues/664#issuecomment-1372073950