SettingsConfig class

Settings configuration for uploading the application without using bootloader. This is needed everytime the application is changed.

SettingsConfig(
 generate, //generate a new settings file
 sdValType, //softdevice validation type 'p256' #null,'p256','crc','sha256'
 appValType, //application validation type 'p256' #null,'p256','crc','sha256'
 path, //path to settings file with the settings to copy
 noBackup, //allow backup of the settings file
 blSettVersion = 1, //This is the type of settings file generated 1 for sdk <=12.0 to >15.3, 2 for 15.3 to 17.0
 arch, //Arch types are 'NRF51','NRF52','NRF52QFAB','NRF52810',or 'NRF52840'
 backupAddress, //address to place the backup settings file
 customBootSettAddr //Place the boot settings in this new location
};
Annotations
  • @JsonSerializable(anyMap: true, checked: true)

Constructors

SettingsConfig({bool generate = false, String? sdValType, String? appValType, String? path, bool noBackup = false, int blSettVersion = 1, String? arch, int? backupAddress, int? customBootSettAddr})
Creates an instance of SettingsConfig
const
SettingsConfig.fromJson(Map json)
Creates SettingsConfig from json
factory

Properties

appValType String?
Application validation type
final
arch String?
Architexture used for this application
final
backupAddress int?
Address to place backup settings
final
blSettVersion int
Bootloader settings version 1 or 2
final
customBootSettAddr int?
Place the settings starting at this address
final
generate bool
Specifies weather to generate siging key file
final
hashCode int
The hash code for this object.
no setterinherited
noBackup bool
Create a backup of the settings file
final
path String?
Import the settings of a previous file mainly used for confirmation the program is working
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdValType String?
Softdevice Validation type
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Creates Map from SettingsConfig
toString() String
Converts SettingsConfig to String
override

Operators

operator ==(Object other) bool
The equality operator.
inherited