Esp32OtaPackage class
Implementation of OTA package for ESP32
- Implemented types
Constructors
- Esp32OtaPackage(BluetoothCharacteristic notifyCharacteristic, BluetoothCharacteristic writeCharacteristic)
- Constructor
Properties
- firmwareUpdate ↔ bool
-
Property to track firmware update status
getter/setter pairoverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- mtu ↔ int
-
Properties
getter/setter pair
- notifyCharacteristic → BluetoothCharacteristic
-
final
- part ↔ int
-
getter/setter pair
-
percentageStream
→ Stream<
int> -
Stream to provide progress percentage
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscription ↔ StreamSubscription?
-
getter/setter pair
- writeCharacteristic → BluetoothCharacteristic
-
final
Methods
-
getFirmware(
int firmwareType, int mtuSize, {String? binFilePath}) → Future< List< Uint8List> > - Get firmware based on firmwareType
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendPart(
int position, Uint8List data) → Future< void> - sendPart function which is used to send parts to the esp32
-
toString(
) → String -
A string representation of this object.
inherited
-
uint8ListToIntList(
Uint8List uint8List) → List< int> - Convert Uint8List to List
-
updateFirmware(
BluetoothDevice device, int updateType, int firmwareType, BluetoothService service, BluetoothCharacteristic dataUUID, BluetoothCharacteristic controlUUID, {String? binFilePath, String? url}) → Future< void> -
sendPArt function ends here
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited