Reputation: 689
I am using a BLU Advanced 5.0 device running on lollipop and I am currently using it as my developer phone, I am writing a program that uses BLE to read the name of a device that has data about the device. I do not connect to this device all I do is read the name of it. Here is my problem, so the Bluetooth device name when I scan never changes even though it does, for example
7ebb6486aa21db2197
That is the name I would get back from the BLE scan, but when I change the values on the BLE Device the name would change, for example
7ebb6486aa21db2199
But when I scan the name wouldn't update it will still show the old name and I cant figure out how to get the name to update. Its bad because the device is not connectable so I can figure out a way to subscribe with GATT to the name. The only way I can get the values to change is when I restart the Bluetooth on the phone and that is the only way I could find.
Upvotes: 0
Views: 1326
Reputation: 18452
If you only scan and never connect, just parse the scanRecord and get the name from there.
Upvotes: 1