我的设备变成了 iBeacon,它在 AltBeacon Locate App 中显示为 iBeacon 作为 iBeacon,但在 iPhone、iPad 和 Mac 中未检测到。设备:- 摩托罗拉 Moto G XT1033
BeaconTransmitter mBeaconTransmitter = new BeaconTransmitter(
this,
new BeaconParser()
.setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24"));
Beacon beacon = new Beacon.Builder()
.setId1("2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6")
.setId2("1")
.setId3("2")
.setManufacturer(0x0000)
// Choose a number of 0x00ff or less as some devices cannot
// detect beacons with a manufacturer code > 0x00ff
.setTxPower(-59)
.setDataFields(Arrays.asList(new Long[] { 0l })).build();
mBeaconTransmitter.startAdvertising(beacon);