jordanebelanger / SwiftyBluetooth

Closures based APIs for CoreBluetooth
MIT License
209 stars 66 forks source link

I am getting service list nil, when i disconnect & connect again, with out killing the app. #37

Closed ashokKOMARA closed 4 years ago

ashokKOMARA commented 5 years ago

I can able to get services list when i connect firs time with peripheral,then disconnected > connect again, now iam unable to list out any services.

marcospolanco commented 5 years ago

@ashokKOMARA I am having the exact same issue. Fix?

ashokKOMARA commented 5 years ago

No, but when i try to reconnect with same peripheral it is working fine. Some times when peripheral is connected in background it is returning the same nil.

kshrikant commented 5 years ago

Hey @ashokKOMARA , @marcospolanco anyone got the solution on this?

kshrikant commented 5 years ago

Hi @ashokKOMARA , @marcospolanco @jordanebelanger Anyone know, how to resolve this ?

Dhaval3110 commented 4 years ago

Hello @kshrikant @ashokKOMARA @marcospolanco @jordanebelanger any update on this ? #39 check this also.

jordanebelanger commented 4 years ago

https://developer.apple.com/documentation/corebluetooth/cbperipheral/1518706-discoverservices

"When the peripheral discovers one or more services, it calls the peripheral(_:didDiscoverServices:): method of its delegate object. After a peripheral discovers services, you can access them through the peripheral’s services property."