• 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
Re: didDiscoverServices not being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: didDiscoverServices not being called


  • Subject: Re: didDiscoverServices not being called
  • From: Jack Phan <email@hidden>
  • Date: Thu, 07 Aug 2014 10:07:08 -0700

 
Hi All,
 
I also have this problem occasionally. My app is built in iPhone5 with iOS 7.0.
 
Jack 


On Thu, Aug 7, 2014 at 7:06 AM, Don Clark <email@hidden> wrote:
I have an iOS app written in Objective-C that works, and am now working on an alternative, written in Swift.  I can connect to my BLE device, but the call to discoverServices on the CBPeripheral never results in the callback to didDiscoverServices.  My BLE delegate class implements CBPeripheralDelegate (along with CBCentralManagerDelegate):

class foobar: NSObject, CBCentralManagerDelegate, CBPeripheralDelegate {


The callback method is defined as:


func peripheral(peripheral: CBPeripheral!, didDiscoverServices error: NSError!) {


The app is running in an iPhone 4s running iOS 7.1.2.   I have the Bluetooth Diagnostics profile installed, and the log produced shows that the service discovery is happening and that a message is going back to my app:

09:17:58.388 XpcConnection.cpp:1700    sendMsg              XPC        Notice     Sending XPC message "CBMsgIdPeripheralServicesDiscovered" to session "com.onsetcomp.testapp-central-5033-180"

But the didDiscoverServices callback is never invoked.  As I said, this is working in another app, written in Objective-C, with this same BLE device and iPhone, so I’m assuming I’ve just overlooked something silly.  Ideas?

 _______________________________________________
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

References: 
 >didDiscoverServices not being called (From: Don Clark <email@hidden>)

  • Prev by Date: didDiscoverServices not being called
  • Next by Date: Bluetooth app/iOS issue
  • Previous by thread: didDiscoverServices not being called
  • Next by thread: Bluetooth app/iOS issue
  • Index(es):
    • Date
    • Thread