• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Error when didDiscoverCharacteristicsForService
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Error when didDiscoverCharacteristicsForService
      • From: Etan Kissling <email@hidden>
  • Prev by Date: Best way to deal with multiples of the same characteristic for a service?
  • Next by Date: Re: Error when didDiscoverCharacteristicsForService
  • Previous by thread: Best way to deal with multiples of the same characteristic for a service?
  • Next by thread: Re: Error when didDiscoverCharacteristicsForService
  • Index(es):
    • Date
    • Thread