how to get public Bluetooth Device Address using core_bluetooth

前端 未结 3 1111
执笔经年
执笔经年 2021-01-15 05:25

We have one bluetooth devices.Bluetooth devices have one public bluetooth device address(BDA).In android they get bluetooth like (30:03:5B:00:15:12).I can get o

3条回答
  •  庸人自扰
    2021-01-15 05:54

    On iOS it is not possible to get the MAC address of the device, it's abstracted by the CBPeripheral class and is identified internally in os by the identifier property. One way to get the MAC address, that's actually most popular, is to include the MAC address in the scan response. You could ask this feature from your BLE device manufacturer. Also the MAC address could be read from one of the GATT characteristics. Ask your BLE manufacturer for more details.

提交回复
热议问题