Closed jones139 closed 5 months ago
This is probably linked to #152, #158, #161
The current draft V4.2.6 attempts to re-start the data source on fault. This does result in the watch reconnecting, but we have multiple notifications for each packet of data, so the data update period drops to 1 second rather than 5 and we get nonesense results - this is worse than having fault pips! - starting a second attempt at the fix....
The switch to the BLESSED library in BLE data source 2 has sorted out the data source shutdown issue by queueing commands. We still see the issue of having to scan for devices and select Infinitime to get it to reconnect sometimes (it took over 24 hours to fail most recently).
V4.2.6 now shows the signal strength nicely, but if the connection does drop out, it does not re-start and just stays in FAULT - we need an automatic re-start to try to recover before going into FAULT.
Sometimes the phone will not connect to the Infinitime watch - but going into the 'Select Bluetooth Device' dialog and scanning for it and selecting the device again cures it.
Sometimes the BLE data source does not shut down properly and still receives data after it has supposed to exit.
I think it might be easier to switch to using the BLESSED BLE library, rather than trying to cure these and other issues ourselves.