Discover one characteristic
Discover one characteristic
- Subject: Discover one characteristic
- From: Alpwise iOS Dev <email@hidden>
- Date: Wed, 03 Oct 2012 11:26:40 +0200
Hi,
When i want to discover ONE characteristic in one service, the callback didDiscoverCharacteristicsForService:error return me all characteristics in that service. By example i search the characteristic 0x2A23 in the service 0x180A and the callback found the characteristics 0x2A23, 0x2A24 and 0x2429. Why i don't return me only characteristic 0x2A23 ?
My function looks like :
-(void)peripheral:(CBPeripheral *)peripheral didDiscoverServices:(NSError *)error { for (CBService *service in peripheral.services) { if ([service.UUID isEqual:[CBUUID UUIDWithString:@"180A"]]) { [peripheral discoverCharacteristics:[NSArray arrayWithObject:[CBUUID UUIDWithString:@"2A23"]] forService:service]; } } }
Thanks,
sam |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden