OTAConfig class

Configuration for starting an OTA update

Constructors

OTAConfig({required int deviceAddress, required Uint8List firmwareData, bool useMeshOta = false, int timeoutSeconds = 300})
const

Properties

deviceAddress int
Target device address
final
firmwareData Uint8List
Firmware data to upload
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeoutSeconds int
Timeout for OTA operation in seconds
final
useMeshOta bool
Use mesh OTA instead of GATT OTA
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert to map for platform channel communication
toString() String
A string representation of this object.
override

Operators

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