-2

推定ビーコン用の SDK for iPhone を見ています。

- (void)connectToBeacon

ビーコンに接続するにはどうすればいいですか?接続するUUID、メジャーとマイナーを渡すにはどうすればよいですか?

どんなアドバイスも素晴らしいだろう..

ありがとう

4

2 に答える 2

0

これがお役に立てば幸いです。

// you declare your beacon and your manager
@property (nonatomic, strong) ESTBeacon* myBeacon;
@property (nonatomic, strong) ESTBeaconManager* beaconManager;

// You create the objects 
self.beaconManager = [[ESTBeaconManager alloc] init];
myRegion = [[ESTBeaconRegion alloc] initWithProximityUUID:ESTIMOTE_PROXIMITY_UUID
                                                      major:11111 minor:22222 identifier:@"beacon1"];
// this will returns an array of beacons
- (void)startRangingBeaconsInRegion:(ESTBeaconRegion *)myRegion

// this will allow  you to manage the array.
-(void)beaconManager:(ESTBeaconManager *)manager
     didRangeBeacons:(NSArray *)beacons
            inRegion:(ESTBeaconRegion *)myRegion
于 2014-05-18T14:45:49.680 に答える