Error when didDiscoverCharacteristicsForService
Error when didDiscoverCharacteristicsForService
- Subject: Error when didDiscoverCharacteristicsForService
- From: Constantijn Schepens <email@hidden>
- Date: Thu, 25 Oct 2012 20:50:26 +0100
Hi,
I am trying to connect a BluetoothLE device, I get as far as connecting a service, when I call discoverCharacteristic:ForService: I correctly get the callback didDiscoverCharacteristicsForService, but then when I attempt to check that no errors occured I get the following error:
Error Domain=CBErrorDomain Code=1 "One or more parameters were invalid." UserInfo=0x1f062150 {NSLocalizedDescription=One or more parameters were invalid.}
Anybody know what might cause this? I cannot find the error in reference material anywhere, it is like CBErrorDomain does not exist.
I also tried to put all the characteristics associated with the service in an array as follows(intentionally before the error check):
NSArray *foundCharacteristics = service.characteristics;
but then when i check foundCharacteristics, the array is empty. I do not know if the two are connected, but I think it might be possible. Any ideas?
Thanks!
Constantijn
_______________________________________________
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