Attempting to update firmware with swift sdk, but getting the error:
"Could not perform DFU. Firmware 0.2.2 requires bootloader version \'0.2.1\' which does not exist."
Metabase on iOS successfully updates the firmware yes. In my app I:
connect to 5 metawear devices
call metawear.checkForFirmwareUpdate() on all of them which returns FirmwareBuild values indicating new firmware versions are available, which is correct (the devices are on 1.4.2)
select a single device to update the firmware of (the others are still connected but not doing anything)
call metawear.updateFirmware(delegate: self, build: nil) which gives the error
I've tried with a single device connected also, but the result is the same (as expected)
Comments
I'm not specifying the build to update to, so it should be the latest (1.4.4). Metabase can update the firmware
Metabase on iOS successfully updates the firmware yes. In my app I:
I've tried with a single device connected also, but the result is the same (as expected)
umm, a fix for the swift sdk or am I doing something incorrect?
Can you post a simple swift function calling the firmware functions that result in the error?
After some more investigating it seems modifying the connection parameters causes it to fail:
This works:
This doesn't:
I can happily live with that, but it seems a strange error to get for that mis-configuration
I agree the behavior is odd, but there is no reason to adjust the connection interval prior to perform the firmware update.