NordicSemiconductor / IOS-CoreBluetooth-Mock

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

Bug fix: Don't read LED state after write if not supported #90

Closed philips77 closed 1 year ago

philips77 commented 1 year ago

Some LBS (LED Button Service) implementations don't support READ property in either LED or Button characteristics. Until now, the LED state was read after a write for confirmation. This was failing, causing the LED state to be always disabled.

This PR fixes that.

Initially, when the LED state is unknown and cannot be ready the UI will display: UKNOWN.