JFOTAUtils class
戒指芯片(惊帆)OTA
- Inheritance
-
- Object
- ElinkHealthRingBaseUtils
- JFOTAUtils
Constructors
-
JFOTAUtils(List<
int> mac, {List<int> cid = ElinkHealthRingConfig.cidHealthRing}) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checksum(
List< int> bytes) → int -
endOTA(
) → Future< List< int> > -
eraseAll(
int size) → Future< List< int> > -
getCid(
) → List< int> -
inherited
-
getElinkA7Data(
List< int> payload) → Future<List< int> > -
inherited
-
getMac(
) → List< int> ? -
inherited
-
initialize(
List< int> mac, {required List<int> cid}) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
otaPageReadChecksum(
) → void -
otaWritePage(
) → void -
pageReadChecksum(
int pageChecksum, int address) → Future< List< int> > -
pageWrite(
List< int> data, int address) → Future<List< int> > -
parseReceiveData(
Uint8List payload) → void -
setFileData(
Uint8List fileData) → void -
setListener(
{dynamic onStartSuccess(int)?, dynamic onOtaPageWrite(List< int> , int)?, dynamic onOtaPageReadChecksum(int, int)?, dynamic onFailure(JFOTAErrorType type)?, VoidCallback? onSuccess, dynamic onProgressChanged(int progress)?}) → void -
startOTA(
) → Future< List< int> > -
sumA7Packet(
Uint8List bytes) → int -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited