How can i get the advertising of a device during scanForDevices? #870
Unanswered
Giovanni-Fantin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I'm developing a crossplatform application (windows & mobile). I'm trying to get the advertising of some ble devices during the scan process. With Win_ble (the library that i'm using for the windows part) i've done it and this is what i see in the console:
flutter: Received Message : {_type: scanResult, bluetoothAddress: aa:bb:cc:dd:ee:00, rssi: -61, timestamp: 25006552342029.465, advType: ConnectableUndirected, localName: Ble_device, adStructures: [{type: 1, data: [6]}, {type: 3, data: [15, 24]}, {type: 171, data: [160]}, {type: 9, data: [75, 69, 68, 95, 65, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 52]}], serviceUuids: [{0000180f-0000-1000-8000-00805f9b34fb}]}.
The adstructures are what i'm searching also with flutter reactive ble, but without success. How can I do it? when i do this
_scanStream = _flutterReactiveBle.scanForDevices (withServices: <Uuid>[]).listen((event) { if (_filterName(event) && !_listId.contains(event.id)) { _listId.add(event.id); print(event); ... }
in the console i obtain this I/flutter ( 7088): DiscoveredDevice(id: AA:BB:CC:DD:EE:00, name: Ble_device, serviceData: {}, serviceUuids: [0000180f-0000-1000-8000-00805f9b34fb], manufacturerData: [], rssi: -59, connectable: Connectable.available)
Beta Was this translation helpful? Give feedback.
All reactions