The behavior of knownPeripherals are different on Android and iOS.
In iOS, knownPeripherals means known by System (OS)
In Android, knownPeripheral means known by lib. (Lib should scan first, and keep the scan results)
However, if some peripheral was bonded and connect to Android first, there are no chance for Lib to scan this peripheral. (Because the connected peripheral cannot scanned)
Therefore, knownPeripheral()'s return value should be equal to bondedDevice() on Android. (Known by OS, not just Lib)
The behavior of knownPeripherals are different on Android and iOS. In iOS, knownPeripherals means known by System (OS) In Android, knownPeripheral means known by lib. (Lib should scan first, and keep the scan results)
However, if some peripheral was bonded and connect to Android first, there are no chance for Lib to scan this peripheral. (Because the connected peripheral cannot scanned)
Therefore, knownPeripheral()'s return value should be equal to bondedDevice() on Android. (Known by OS, not just Lib)
What do you think?