flutter_blue
flutter_blue copied to clipboard
How can I identify what device I want to connect if the name data is empty
If I run the example I only get data with no name info but some manufacturer data (not sure what the manufacturer data is....). How can I select the device I would like to connect to?
Any updates on this? I'm struggling as well.
This explained things for me.
After a lot of struggling with this example, I tried using flutter_bluetooth_serial (it's based on flutter_blue) and successfully connected to the needed device.
I have the same problem. I tested the example on my two sony z3+ smart phones which have bluetooth version 4.1 but still it shows hex number instead of human readable name. can not connect to each other, flutter_bluetooth_serial is android only and its not an option for me. please someone explain how can I use this package.
I have the same problem - tested 2 android phones, raspberry Pi 3B+, HC-05 bluetooth module (Arduino) and some wireless headphones - all of the devices has no name displayed :C
Same problem, when I try to get device name the string is empty, The package provided by @bogoevskid solve this problem. Hope this problem will be fixed as fast as possible
@enricobenedos I think the answer is no. I basically blocked the update and use the old version. Kind of sucks.
@ride4sun Did you write that you are using the old version? Did this solve the problem with the name? And if so, which version are you using?
Solved for Raspberry PI 4.
So little background on what I was trying to solve.
My issue was to retrieve mac address of Bluetooth on Raspberry PI 4, which we used for let's say "XYZ" reason.
So, we used the flutter_blue package to set up Bluetooth and discover the raspberry PI device. All we could see was MAC Address of raspberry PI 4 but no "Local Name". Dig around a lot and found that PI 4 was not advertising BLE, so I enabled "LE Set Advertise Enable" using the following command. For more information, you can check this out BLE Advertising
After enabling BLE Advertising, we could see the Local Name of Raspberry PI 4.
I have exactly the same trouble using a Vodafone Smart N10 Android 9.0 Why I cannot read the names of the devices? using Bluetooth settings i can see it perfectly.