NordicSemiconductor / IOS-DFU-Library

OTA DFU Library for Mac and iOS, compatible with nRF5x SoCs
http://www.nordicsemi.com
BSD 3-Clause "New" or "Revised" License
520 stars 214 forks source link

ios 15 does not respond when starting the dfu process? #496

Closed QMY-ZQ closed 1 year ago

QMY-ZQ commented 1 year ago

react-native v0.55.4; "react-native-nordic-dfu v2.0.1; ios15.2

It can be used normally on the android platform, and there are related progress,But on the Apple phone, there is no response to executing startDfu(),I checked the moudules file RNNordicDfu.m file,retrievePeripheralsWithIdentifiers returns 0 so the DFU process quits with error "Could not find device with deviceAddress"

NSArray<CBPeripheral *> * peripherals = [centralManager retrievePeripheralsWithIdentifiers:@[uuid]];

image Then what do I do next?

philips77 commented 1 year ago

If you don't have the UUID associated with yourCBPeripheral you need to scan for it using scanForPeripherals

QMY-ZQ commented 1 year ago

@philips77 I try to replace, but Unknown type name 'scanForPeripherals'