CoreBluetooth: discoverServices fails with 0 services discovered and error "operation couldn't be completed"
CoreBluetooth: discoverServices fails with 0 services discovered and error "operation couldn't be completed"
- Subject: CoreBluetooth: discoverServices fails with 0 services discovered and error "operation couldn't be completed"
- From: Glenn Bachmann <email@hidden>
- Date: Fri, 09 Dec 2011 14:10:57 -0500
Hi - I hope someone on here can shed some light on this error. I have implemented corebluetooth in my app and have been able to successfully connect and establish data flow from a BLE heartbelt to my iPhone 4s. For a while it was working great. Then a week or two ago it stopped working. What is happening is that my call to retrievePeripheral is successful, then I issue a connectPeripheral, which also succeeds. In my delegate for didConnectPeripheral I do this:
[aPeripheral setDelegate:self];
[aPeripheral discoverServices:nil];
I then immediately get a delegate callback to didDiscoverServices, but the services in the parameter aPeripheral has a count of 0, and the NSError parameter has a description of "Error Domain=CBErrorDomain Code=0 "The operation couldn’t be completed. (CBErrorDomain error 0.)"
This used to return a list of services, at which point I would then get my characteristics, and start receiving data (heartbeats). But I can't see why its no longer working. Any ideas?
I can't swear to it, but I have an idea that it stopped working when I upgraded my iPhone 4s to OS 5.0.1.
Thanks
Glenn
_______________________________________________
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