Skip to content

Commit 2ef318a

Browse files
authored
Merge pull request #420 from NordicSemiconductor/develop
Version 4.10.1
2 parents e3f8b52 + 5c6656d commit 2ef318a

File tree

9 files changed

+22
-10
lines changed

9 files changed

+22
-10
lines changed

Example/Podfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- iOSDFULibrary (4.10.0):
2+
- iOSDFULibrary (4.10.1):
33
- ZIPFoundation (= 0.9.11)
44
- ZIPFoundation (0.9.11)
55

@@ -15,7 +15,7 @@ EXTERNAL SOURCES:
1515
:path: "../"
1616

1717
SPEC CHECKSUMS:
18-
iOSDFULibrary: 998be9333f6b7781f342c837b5d7bb20280bf17b
18+
iOSDFULibrary: 54dfe3f729cabc2250b0420147d0f864d76e7b54
1919
ZIPFoundation: b1f0de4eed33e74a676f76e12559ab6b75990197
2020

2121
PODFILE CHECKSUM: 16697609d795697cac6384a823bc962ccbddb9d0

Example/Pods/Local Podspecs/iOSDFULibrary.podspec.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/iOSDFULibrary-iOS/iOSDFULibrary-iOS-Info.plist

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/iOSDFULibrary-macOS/iOSDFULibrary-macOS-Info.plist

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ let package = Package(
5656
dependencies: [
5757
.package(
5858
url: "https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library",
59-
.upToNextMajor(from: "<Desired Version, e.g. 4.10.0>")
59+
.upToNextMajor(from: "<Desired Version, e.g. 4.10.1>")
6060
)
6161
],
6262
targets: [.target(name: "<Your Target Name>", dependencies: ["NordicDFU"])]

changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
### Changelog
2+
- **4.10.1**
3+
-Bugfix: A log message was incorrectly shown pointing to a solution to non-existing problem (#419).
4+
25
- **4.10.0**
36
- Improvement: Guarantee word-aligned writes to the packet characteristic (#366).
47
- Improvement: Extended DFU Connection Timeout from 3 to 15 seconds (#411).

iOSDFULibrary.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "iOSDFULibrary"
3-
s.version = "4.10.0"
3+
s.version = "4.10.1"
44
s.summary = "This repository contains a tested library for iOS 9+ devices to perform Device Firmware Update on the nRF5x devices"
55
s.description = <<-DESC
66
The nRF5x Series chips are flash-based SoCs, and as such they represent the most flexible solution available. A key feature of the nRF5x Series and their associated software architecture and S-Series SoftDevices is the possibility for Over-The-Air Device Firmware Upgrade (OTA-DFU). See Figure 1. OTA-DFU allows firmware upgrades to be issued and downloaded to products in the field via the cloud and so enables OEMs to fix bugs and introduce new features to products that are already out on the market. This brings added security and flexibility to product development when using the nRF5x Series SoCs.

iOSDFULibrary/Classes/Implementation/SecureDFU/Peripheral/SecureDFUPeripheral.swift

+9
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,13 @@ internal class SecureDFUPeripheral : BaseCommonDFUPeripheral<SecureDFUExecutor,
117117
dfuService.jumpToBootloaderMode(withAlternativeAdvertisingName: name,
118118
onSuccess: {
119119
self.jumpingToBootloader = true
120+
self.possibleDisconnectionOnSettingAlternativeName = false
120121
// The device will now disconnect and
121122
// `centralManager(_:didDisconnectPeripheral:error)` will be called.
122123
},
123124
onError: { error, message in
124125
self.jumpingToBootloader = false
126+
self.possibleDisconnectionOnSettingAlternativeName = false
125127
self.delegate?.error(error, didOccurWithMessage: message)
126128
}
127129
)
@@ -142,6 +144,13 @@ internal class SecureDFUPeripheral : BaseCommonDFUPeripheral<SecureDFUExecutor,
142144
if possibleDisconnectionOnSettingAlternativeName {
143145
logger.e("Buttonless service not configured, see: https://devzone.nordicsemi.com/f/nordic-q-a/59881/advertising-rename-feature-not-working/243566#243566. To workaround, disable alternative advertising name.")
144146
possibleDisconnectionOnSettingAlternativeName = false
147+
148+
// We could set the flag below to allow jumping to the bootloader mode
149+
// without using alternative advertising name, but it's better to fail
150+
// and make sure the user knows about the issue. It can be workarond
151+
// by disabling alternative name in DFUServiceInitiator.
152+
153+
// jumpingToBootloader = true
145154
}
146155
super.peripheralDidDisconnect()
147156
}

0 commit comments

Comments
 (0)