【问题标题】:How can i get MAC of a device through BLE in iOS [duplicate]如何在 iOS 中通过 BLE 获取设备的 MAC [重复]
【发布时间】:2017-08-03 11:50:14
【问题描述】:

如何在objective C或swift中获取设备的MAC地址。有没有办法从“标识符”字段中获取 MAC 地址。

【问题讨论】:

  • edit您的问题显示the code you have so far。您应该至少包含您遇到问题的代码的大纲(但最好是minimal reproducible example),然后我们可以尝试帮助解决具体问题。您还应该阅读How to Ask
  • 无法在ios中获取外围设备的mac地址,所以使用UUID作为外围设备的标识。
  • 在 iOS 中无法获取外设 mac 地址,ios 为外设生成 UUID(identifier)。其他方式是通过 RSSI 值识别。

标签: ios objective-c swift bluetooth-lowenergy core-bluetooth


【解决方案1】:

没有任何用于通过 BLE 获取 MAC 地址的公共 API。

如果你想通过越狱设备获取,那么你可以通过this link获取

【讨论】:

  • 感谢您的信息。
猜你喜欢
  • 2010-11-09
  • 1970-01-01
  • 1970-01-01
  • 2019-05-02
  • 2018-11-18
  • 1970-01-01
  • 2017-12-11
  • 2016-06-14
  • 1970-01-01
相关资源
最近更新 更多