NordicSemiconductor / IOS-CoreBluetooth-Mock

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

Bug fix: Fixed connection to already connected devices #94

Closed philips77 closed 1 year ago

philips77 commented 1 year ago

This PR should fix #92.

If the peripheral to which a connection request was made is already connected, the

delegate.peripheralDidReceiveConnectionRequest(mock)

should not be called. Instead, the delegate should be notified immediately with the state .success.