Closed everlof closed 1 year ago
The dfu lib should be split into 2/3 modules. Transport should be separate from the implementation. We have it in the backlog.
For now I recommend cloning the library and adding as development package and migrating to Core Bluetooth Mock.
Okey, feels like it would be a bit easier to just expose the underlying CBPeripheral
in the mock peripherals? At least until you've done the ticket in the backlog.
How do you use this library internally? I mean, how do you self get around this issue?
Hello,
I've integrated this library and it works great for the most part. However, our part of the code that interfaces with the DFU-library from Nordic Semiconductors is a bit problematic.
After I've created a
DFUServiceInitiator
and gonna callstart(target: target)
(https://github.com/NordicSemiconductor/IOS-DFU-Library/blob/d79e33c7eed7f67454578ff08462ea92e97dc330/iOSDFULibrary/Classes/Implementation/DFUServiceInitiator.swift#L465), I can't, because there's no way to access the real peripheral from theCBMPeripheral
.Any hints on how to resolve this?