On quinta-feira, 4 de agosto de 2016 04:04:59 PDT ??? wrote:
> I understand that reason.
> but when BLE is defined in the near future.
> some problem will be caused because there is no public API like getAddress()
> in any Bluetooth Platform.

On Linux, the hciconfig can display the address. That implies that it can be 
obtained from the kernel. strace identifies these operations:

socket(AF_BLUETOOTH, SOCK_RAW, 1)       = 3
ioctl(3, HCIGETDEVLIST, 0x55e18eaca010) = 0
ioctl(3, HCIGETDEVINFO, 0x55e18cc3bac0) = 0

Can't you use that to get the device's own address?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Reply via email to