The app I'm working on connects iPhone/iPad to a BLE peripheral device, with received notification every 5 seconds.
All works well most of the time,
On occasion, after many days of faultless operation, I'll start seeing unanounced disconnects - didDisconnectPeripheral, with
didDisconnectPeripheral Error Domain=CBErrorDomain Code=6 "The connection has timed out unexpectedly."
Once these disconnects start, they continue randomly, at no particular time interval or place within my code.
Initially the only way I found to stop the disconnects was to power off / on the iPhone, but the problem would eventually return
I have recently found that if I disable WiFi the problem goes away, re-enabling wifi disconnections return
I have also found the issue looks to be occuring with other apps, Punch Through Design's Light Blue gives "Disconnection Alerts" whenever I have WiFi turned on.
iOS version I'm working with is 8.1, but has been reported on 8.3.
Any suggestions for a solution would be most appreciated