BLE IOS: connectPeripheral results a didDisconnectPeripheral with zero error SOME

I am working on a project that uses BLE ios

It works fine, except that sometimes when I call connectPeripherical(with p extraction or with central scanning), it takes 10 seconds and then disconnects the peripherals ( didDisconnectPeripheralwith zero error). Sometimes this error appears, and I have to disconnect / enable my iphone for it to work.

I really lost this error.

Any idea?

Many thanks for your help

+3
source share
1 answer

. CoreBluetooth /. , , , .

: : , [yourPeripheral setNotifyValue: YES forCharacteristic: character];

:)

+2

All Articles