Hi!
Today I am looking to use Eddystone URL. What I want to do:
I want to retrieve the URL of a beacon like “http://TourSaintNicolas”. I don’t want to use this url to access a web page but just grab the part after the “http://” to get “Saint Nicholas Tower”.
However, I can not retrieve the URL because this error occurs:
“- [ESTEddystoneUID url]: unrecognized selector sent to instance 0x1c0090d10”
I activate Eddystone URL on my beacons and Eddystone UID is disabled.
Here is my code:
- (void)viewDidLoad {
[super viewDidLoad];
...
self.eddystoneManager = [[ESTEddystoneManager alloc] init];
self.eddystoneManager.delegate = self;
...
}
- (void)eddystoneManager:(ESTEddystoneManager *)manager didDiscoverEddystones:(NSArray<ESTEddystone *> *)eddystones withFilter:(ESTEddystoneFilter * _Nullable)eddystoneFilter {
if (eddystones.count > 0) {
self.eddystoneUrlArray = (NSArray<ESTEddystoneURL *> *)eddystones;
NSLog(@"SUCCESS : Eddystone packets found : %lu", [self.eddystoneUrlArray count]);
for(ESTEddystoneURL* indexEddystone in self.eddystoneUrlArray)
{
NSLog(@"%@", indexEddystone.url); //The error occurs here
}
NSLog(@"STATE : Updating TableView.....");
}
[self.tableView reloadData];
}
Here is my logs:
2018-05-02 16:48:07.779164+0200 BeaconReadTest[6080:1462446] STATE : Searching beacons…
2018-05-02 16:48:10.780088+0200 BeaconReadTest[6080:1462446] SUCCESS : Eddystone packets found : 1
2018-05-02 16:48:10.780435+0200 BeaconReadTest[6080:1462446] -[ESTEddystoneUID url]: unrecognized selector sent to instance 0x1c0090d10
Can you help me?