evothings.ble.readAllServiceData not working properly on iOS

Ask, and ye shall receive.
jose
Posts: 3
Joined: 18:35, 05 Apr 2015

evothings.ble.readAllServiceData not working properly on iOS

Postby jose » 18:39, 05 Apr 2015

Hi guys and thank you for your plugin.

We are using it for an app which relays on Appgyver Supersonic. Scanning and connection seems to work great but there is a problem when we try to call readAllServiceData(). It won't return nothing unless we stop the script for a few seconds with a breakpoint before servicesCallbackFun() is called.

It seems to work well on Android but nothing is firing ( not the win method neither the fail one ) on this readAllServiceData() method :-(

Do you know about that? Have any of you experienced something similar?

I am using an iPhone 6 with iOS 8.3 right now.


Thanks!

Fredrik
Site Admin
Posts: 196
Joined: 15:00, 18 Nov 2013

Re: evothings.ble.readAllServiceData not working properly on iOS

Postby Fredrik » 10:29, 07 Apr 2015

readAllServiceData() is used, among other places, in our example "ble-discovery". I am running it now on an iPhone6+ with iOS 8.2, without any problems.

iOS 8.3 is still in beta. It may have bugs. We cannot support it until Apple releases the final version.

Please try the example "ble-discovery" and see if that works for you.

jose
Posts: 3
Joined: 18:35, 05 Apr 2015

Re: evothings.ble.readAllServiceData not working properly on iOS

Postby jose » 09:37, 10 Apr 2015

So, 8.3 is finally out of the box. Will this be supported? Have you tried that? We just tested ble-discovery with the new firmware but it is not working.


Thanks

Fredrik
Site Admin
Posts: 196
Joined: 15:00, 18 Nov 2013

Re: evothings.ble.readAllServiceData not working properly on iOS

Postby Fredrik » 09:56, 10 Apr 2015

I'm installing iOS 8.3 on an iPhone 5c as I write, but our internet connection is bad at the moment and it will take some time.

Have you tried any iOS version between 7.0 and 8.2?

jose
Posts: 3
Joined: 18:35, 05 Apr 2015

Re: evothings.ble.readAllServiceData not working properly on iOS

Postby jose » 10:26, 10 Apr 2015

Sure Fredrik, we previously tried with 8.2 on the same iPhone 6 but not the ble-discovery app, our app with your plugin but doesn't seemed to work either :-(

Fredrik
Site Admin
Posts: 196
Joined: 15:00, 18 Nov 2013

Re: evothings.ble.readAllServiceData not working properly on iOS

Postby Fredrik » 10:37, 10 Apr 2015

It might be the BLE device itself that does something strange then. Can you try reading the services of something else? Maybe a TI SensorTag or an Arduino BLE shield, or a programmable iBeacon?

Fredrik
Site Admin
Posts: 196
Joined: 15:00, 18 Nov 2013

Re: evothings.ble.readAllServiceData not working properly on iOS

Postby Fredrik » 14:56, 10 Apr 2015

The update finally finished. BLE Discovery works normally now, on our iPhone 5c with iOS 8.3.

It should be noted for debugging purposes that readAllServiceData() is a convenience wrapper function around the more low-level functions services() characteristics() and descriptors().

You can try calling services() for starters. Maybe that'll work better.


Return to “Questions and answers”

Who is online

Users browsing this forum: No registered users and 11 guests