chipweinberger / flutter_blue_plus

Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android, iOS, macOS
Other
791 stars 479 forks source link

[Help]: How could I get the device name? #682

Closed rocioaltairr closed 1 year ago

rocioaltairr commented 1 year ago

Requirements

Have you checked this problem on the example app?

No

FlutterBluePlus Version

1.28.13

Flutter Version

3.10.6

What OS?

Android

OS Version

Android

Bluetooth Module

Not sure

What is your problem?

Hello!

I would like to ask a question. I saw the local name was deprecated. How could I get the name of the device then, because through the rootId I could not connect to a specific device. Or there is any way to do it?

Thanks and Regard

Logs

ScanResult BluetoothDevice{remoteId: 6D:35:67:9C:3B:C2, platformName: , services: null}
chipweinberger commented 1 year ago

you can use advName or platformName

not all devices advertise a name