【发布时间】:2020-06-16 16:43:13
【问题描述】:
有人知道如何在 iOS 上通过 BLE 传输短字符串或字节数组而无需配对?
根据我的研究,startAdvertise 方法只允许使用 2 个键是 CBAdvertisementDataLocalNameKey 和 CBAdvertisementDataServiceUUIDsKey。
https://developer.apple.com/documentation/corebluetooth/cbperipheralmanager/1393252-startadvertising
我也认为我可以使用
CBAdvertisementDataServiceDataKey: String
A dictionary that contains service-specific advertisement data.
附加数据,但这似乎是另一个死胡同WARNING: The advertisement key 'Service Data' is not allowed?
【问题讨论】:
标签: android ios bluetooth-lowenergy ibeacon