btle

How to get Mac Address From CBPeripheral And CBCenter

时光毁灭记忆、已成空白 提交于 2019-11-28 04:22:30
问题 I need to take target mac address from input connection and outgoing connection from CBPeripheral And CBCenter. identifier dose not define in them. look was remove from iOS 7. Is there any other way? https://developer.apple.com/library/prerelease/ios/documentation/CoreBluetooth/Reference/CBPeripheral_Class/index.html 回答1: You can't get the MAC address for a CBPeripheral but you can get the identifier property, which is a UUID that iOS computes from the MAC amongst other information. This