IosSpecialParameter class
iOS parameters for DFUServiceInitiator object. See https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library for more information.
Constructors
Properties
- alternativeAdvertisingName → String?
-
If
alternativeAdvertisingNameEnabled
istrue
then this specifies the alternative name to use. If nil (default) then a random name is generated.final - alternativeAdvertisingNameEnabled → bool?
-
In SDK 14.0.0 a new feature was added to the Buttonless DFU for non-bonded
devices which allows to send a unique name to the device before it is switched
to bootloader mode. After jump, the bootloader will advertise with this name
as the Complete Local Name making it easy to select proper device. In this case
you don't have to override the default peripheral selector.
final
- connectionTimeout → double?
-
Connection timeout.
final
- dataObjectPreparationDelay → double?
-
Duration of a delay, that the service will wait before sending each data object in
Secure DFU. The delay will be done after a data object is created, and before
any data byte is sent. The default value is 0, which disables this feature for the
second and following data objects, but the first one will be delayed by 0.4 sec.
final
- disableResume → bool?
-
Disable the ability for the DFU process to resume from where it was.
final
- forceScanningForNewAddressInLegacyDfu → bool?
-
By default, the Legacy DFU bootloader starting from SDK 7.1, when enabled using
buttonless service, advertises with the same Bluetooth address as the application
using direct advertisement. This complies with the Bluetooth specification.
However, starting from iOS 13.x, iPhones and iPads use random addresses on each
connection and do not expect direct advertising unless bonded. This causes thiose
packets being missed and not reported to the library, making reconnection to the
bootloader and proceeding with DFU impossible.
A solution requires modifying either the bootloader not to use the direct advertising,
or the application not to share the peer data with bootloader, in which case it will
advertise undirectly using address +1, like it does when the switch to bootloader mode
is initiated with a button. After such modification, setting this flag to true will make the
library scan for the bootloader using
DFUPeripheralSelector
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- packetReceiptNotificationParameter → int?
-
The number of packets of firmware data to be received by the DFU target before
sending a new Packet Receipt Notification. If this value is 0, the packet receipt
notification will be disabled by the DFU target. Default value is 12.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited