推定ビーコン用の SDK for iPhone を見ています。
- (void)connectToBeacon
ビーコンに接続するにはどうすればいいですか?接続するUUID、メジャーとマイナーを渡すにはどうすればよいですか?
どんなアドバイスも素晴らしいだろう..
ありがとう
推定ビーコン用の SDK for iPhone を見ています。
- (void)connectToBeacon
ビーコンに接続するにはどうすればいいですか?接続するUUID、メジャーとマイナーを渡すにはどうすればよいですか?
どんなアドバイスも素晴らしいだろう..
ありがとう
これがお役に立てば幸いです。
// 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