onDeviceScanList is invoked on both success and failure and is provided an appropriate BluFiStatusCode as an argument but the method ignores it, and always invokes didReceiveDeviceScanResponse on the BlufiDelegate with a status of StatusSuccess.
- (void)onDeviceScanList:(NSMutableArray<BlufiScanResponse *> *)list status:(BlufiStatusCode)code {
id delegate = _blufiDelegate;
BlufiClient *client = self;
if (delegate && [delegate respondsToSelector:@selector(blufi:didReceiveDeviceScanResponse:status:)]) {
[_callbackQueue addOperationWithBlock:^{
[delegate blufi:client didReceiveDeviceScanResponse:list status:StatusSuccess];
}];
}
}
onDeviceScanListis invoked on both success and failure and is provided an appropriateBluFiStatusCodeas an argument but the method ignores it, and always invokesdidReceiveDeviceScanResponseon theBlufiDelegatewith a status ofStatusSuccess.