NordicSemiconductor / IOS-CoreBluetooth-Mock

Mocking library for CoreBluetooth framework.
BSD 3-Clause "New" or "Revised" License
227 stars 52 forks source link

Handling unavailable devices fixed #23

Closed philips77 closed 4 years ago

philips77 commented 4 years ago

This PR fixes an issue with handling devices that are out of range. Previously, although such devices didn't show up on scan results, connection was possible. Now it has been fixed. Connection will be in pending state until disconnect() is called, or the device is brought into range again. A unit test has been added for this scenario.