• 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
Services empty when didDiscoverServices triggered
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Services empty when didDiscoverServices triggered


  • Subject: Services empty when didDiscoverServices triggered
  • From: "Chen, Liang (IS)" <email@hidden>
  • Date: Mon, 16 Sep 2013 04:53:20 +0000
  • Thread-topic: Services empty when didDiscoverServices triggered

This issue happens on iOS  6 and iOS7.
Usually when services of peripheral are discovered, the method:

- (void)discoverCharacteristics:(NSArray *)characteristicUUIDs
forService:(CBService *)service

will get called.

Then we call the
- (void)peripheral:(CBPeripheral *)peripheral didDiscoverServices:(NSError
*)error
method to discover the characteristics.

But in my app, the peripheral.services is sometimes empty(This happens
occasionally, but it's bothering since the characteristics cannot be
found).
The worse part is that when the peripheral is in this state, it's services
keeps empty until I kill the peripheral app(an iOS app too) and restart
the app again.

From the aspect of usability, we shouldn't tell the user that "You should
kill the app and restart it and try again" right?

Has anyone seen this issue when you develop a central app?
And I'm not sure if it's a iOS issue or my app's issue.

Any engineer from Apple can answer my question? I'll be really appreciated.




 _______________________________________________
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: Services empty when didDiscoverServices triggered
      • From: András Kövi <email@hidden>
  • Prev by Date: Mavericks and BLE: all writes fail with permissions error
  • Next by Date: Re: Services empty when didDiscoverServices triggered
  • Previous by thread: Mavericks and BLE: all writes fail with permissions error
  • Next by thread: Re: Services empty when didDiscoverServices triggered
  • Index(es):
    • Date
    • Thread