Closed kscheff closed 1 year ago
Shouldn't you pass nil
instead of []
to get all services?
The goal was to have it compatible to CoreBluetooth with minimal changes. CB takes an empty list [] as input and delivers an unfiltered result.
I confirm. An empty []
list behaves the same way as nil
. I did not know that. Thanks for reporting.
When using the mock the call to
.discoverServices
returns with am empty list.Expected: the call should return all
mockServices
when supplying an empty list([])
.Documentation to this call from Apple states: