Been trying out your code in a project of mine (it's been super helpful, thanks!) and keep coming across the above error when starting it up. Line it occurs on is below:
this.NotificationSourceCharacteristic.ValueChanged += NotificationSourceCharacteristicOnValueChanged;
Full error:
An exception of type 'System.Exception' occurred in mscorlib.dll but was not handled in user code
Additional information: Incorrect function. (Exception from HRESULT: 0x80070001)
Any ideas?