Home > Mobile >  CoreBluetooth search bluetooth device, a lot of name is null, why set inside the name can be found w
CoreBluetooth search bluetooth device, a lot of name is null, why set inside the name can be found w

Time:10-10

I use CoreBluetooth search bluetooth devices, many of the device name is null, the apple bluetooth search for the phone itself is the name can be found?
Making it to find some demo, and no name, which a great god know why is this??????

CodePudding user response:

When scanning a bluetooth device to define a new BluetoothAdapter. LeScanCallback () callback interface object, needs to be rewritten onLeScan method, this method can get the BluetoothDevice objects device, or using other methods can also get a BluetoothDevice objects, this device is the scanning to the bluetooth device, you print the value of the object, you will find some member variables (including bluetooth name) it is null, then calling getname have bluetooth name is null,
As for the deeper reason did not know,

CodePudding user response:

This is not any other questions, or is a configuration problem, specific actual test, in order to know where the problem is
  •  Tags:  
  • iOS
  • Related