Re: Error when didDiscoverCharacteristicsForService
Re: Error when didDiscoverCharacteristicsForService
- Subject: Re: Error when didDiscoverCharacteristicsForService
- From: Etan Kissling <email@hidden>
- Date: Fri, 26 Oct 2012 08:59:54 +0000
- Thread-topic: Error when didDiscoverCharacteristicsForService
Constantijn,
I would strongly suggest to get an air trace (cheap ble sniffers are available at TIs page - they also work with csr-based peripherals). This is because corebluetooth errors rarely describe the issue very precisely. With the air trace you can see the error packet from the device and use the core bluetooth spec to debug.
To give further assistance, a bit more context is required. How are you calling the functions? What peripheral do you use? What is the GATT database on the peripheral?
Cheers
Etan
On 25.10.2012, at 21:57, "Constantijn Schepens" <email@hidden> wrote:
> 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
_______________________________________________
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