I am trying out the library (.Net version), and I know the device I want to connect to by MAC address, and when I call wclGattClient.Connect
it works fine and returns no error even when the device is not turned on, but when I go to retrieve services from the device via wclGattClient.ReadServices()
with the flag wclGattOperationFlag.goReadFromCache
or any of the other two flags, the returned services are null and the error returned is WCL_E_CONNECTION_NOT_ACTIVE
. If the device is powered on, then it gets services. The problem is that this device will be powered off most of the time, and then turned on. I want to read a characteristic from the device when it executes its function after it is turned on.
In the demo app, I noticed the discovery process does not pick up the device even when I specify reading from cache.
Using the standard UWP and even the native Win32 BLE, this is not a problem, but it is a lot more code, which is why I am exploring this library. For instance, the Windows 10 BLE Explorer sees the device during enumeration when it is not turned on. Is this a limitation of BTFramework? Or I am missing something
Thanks.