NordicSemiconductor / IOS-CoreBluetooth-Mock

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

Bug fix: Returning peripheral name fixed #80

Closed philips77 closed 1 year ago

philips77 commented 1 year ago

This PR fixes #78.

After the device is scanned, the peripheral.name returns the local name from the advertising packet under CBMAdvertisementDataLocalNameKey. From first connection, when the iOS discovers services and reads the Device Name characteristic, that name is returned and cached.