Skip to content

Commit

Permalink
changed magic string to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mlwelles committed Apr 14, 2014
1 parent 4bf67c2 commit ec7a940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions BeaconScanner/HGBeacon.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import <IOBluetooth/IOBluetooth.h>
#import "stdint.h"
#import "EXTScope.h"
NSString *const HGBeaconAdvertismentManufacturerDataKey = @"kCBAdvDataAppleBeaconKey";
@implementation HGBeacon

- (id)initWithProximityUUID:(NSUUID *)proximityUUID major:(NSNumber *)major minor:(NSNumber *)minor measuredPower:(NSNumber *)power {
Expand Down Expand Up @@ -95,8 +96,7 @@ -(NSData *)manufacturerAdvertismentData {
}

- (NSDictionary *)advertismentDictionary {
NSString *beaconKey = @"kCBAdvDataAppleBeaconKey";
return [NSDictionary dictionaryWithObject:[self manufacturerAdvertismentData] forKey:beaconKey];
return [NSDictionary dictionaryWithObject:[self manufacturerAdvertismentData] forKey:HGBeaconAdvertismentManufacturerDataKey];
}

-(BOOL)isEqualToBeacon:(HGBeacon *)otherBeacon {
Expand Down

0 comments on commit ec7a940

Please sign in to comment.