ElinkCmdUtils class

Constructors

ElinkCmdUtils()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

bytesToDouble(List<int> bytes, {bool littleEndian = true}) double
bytesToInt(List<int> bytes, {bool littleEndian = true}) int
checkElinkCmdSum(List<int> data) bool
doubleToBytes(double value, {bool littleEndian = true}) List<int>
formatA6Data(List<int> data) List<int>
Format A6 data, remove header, trailer and checksum
formatA7Data(List<int> data) List<int>
Format A7 data, remove CID, packet header, packet trailer and checksum
getElinkA6Data(List<int> payload) List<int>
getElinkA7Data(List<int> cid, List<int> mac, List<int> payload) Future<List<int>>
getElinkCmdSum(List<int> payload) int
getElinkDateTime({DateTime? date}) List<int>
intToBytes(int value, {int length = 4, bool littleEndian = true}) List<int>
isElinkA6Data(List<int> data) bool
isElinkA7Data(List<int> data) bool

Constants

elinkData6AEnd → const int
elinkData7AEnd → const int
elinkDataA6Start → const int
elinkDataA7Start → const int