9

We can make iOS devices act as a iBeacon transmitter and We can locate nearby iBeacons if we know their Proximity UUID.

With Google's Proximity Beacon API, It's possible to configure and register real Beacon hardware, and we can locate them with Nearby Messaging API.

But is it possible to make iOS devices to broadcast as Eddystone Beacons ? And it needs to be discoverable by apps that scan Eddystone beacons.

Thanks in advance.

4

1 回答 1

19

不幸的是,这是不可能的。 虽然 iOS 设备可以使用 CoreBluetooth API 发布蓝牙 LE 服务广告(Eddystone 使用的广告类型),但您无法附加必要的数据。这是因为将CBAdvertisementDataServiceDataKey服务数据与广告相关联的在 iOS 上是只读的。你不能设置数据。

所以当你想让 iOS 设备做这样的广告来传输 Eddystone-UID 时:

0201060303aafe1516aafe00e72f234454f4911ba9ffa6000000000001

你最终会做这样的广告:

0201060303aafe0316aafe

这将省略 Eddystone-UID 类型代码 (00)、校准功率 (e7)、命名空间标识符 (2f234454f4911ba9ffa6) 和实例标识符 (000000000001)。因此,它不会被识别为 Eddystone-UID 帧。

于 2016-02-03T11:55:50.703 回答