Code Monkey home page Code Monkey logo

Comments (5)

xvrh avatar xvrh commented on May 29, 2024 1

Would you accept a pull request that add a manufacturerData field to DiscoveredDevices?

@immutable
@FunctionalData()
class DiscoveredDevice extends $DiscoveredDevice {
  final String id;
  final String name;
  @CustomEquality(DeepCollectionEquality())
  final Map<Uuid, Uint8List> serviceData;
  
  final Uint8List/*?*/ manufacturerData;

  @CustomEquality(Ignore())
  final int rssi;
}

from flutter_reactive_ble.

werediver avatar werediver commented on May 29, 2024

I am pretty sure that what you're looking for is DiscoveredDevice.serviceData.

from flutter_reactive_ble.

xvrh avatar xvrh commented on May 29, 2024

I was looking for the SparseArray<byte[]> | getManufacturerSpecificData()" https://developer.android.com/reference/android/bluetooth/le/AdvertiseData on Android
and https://developer.apple.com/documentation/corebluetooth/cbadvertisementdatamanufacturerdatakey on iOS

Which is different from the service advertisment data.

Both Flutter_blue and flutter_ble_lib expose this:
https://github.com/pauldemarco/flutter_blue/blob/master/lib/src/flutter_blue.dart#L243
https://github.com/Polidea/FlutterBleLib/blob/develop/lib/scan_result.dart#L36

from flutter_reactive_ble.

werediver avatar werediver commented on May 29, 2024

You're right, here we're only extracting CBAdvertisementDataServiceDataKey data (and similarly on Android).

This is a valid feature request πŸ‘

from flutter_reactive_ble.

werediver avatar werediver commented on May 29, 2024

@xvrh Looks fine. This is not the biggest change needed for the whole feature to work, though.

Please, feel free to open a pull request πŸ‘

from flutter_reactive_ble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.