OtaService class
Constructors
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
-
cancelOtaUpdate(
) → Future< bool> - Requests OTA cancellation.
-
clearOtaProgressListener(
) → void -
connectDevice(
String uuid, {String? deviceName}) → Future< bool> - Connects to a device by iOS UUID or Android MAC address.
-
getDeviceInfo(
) → Future< bool> - Queries OTA device information from the native SDK.
-
getSdkVersion(
) → Future< String?> - Returns the native JL OTA SDK version when available.
-
isOtaUpdateInProgress(
) → Future< bool> - Returns whether the native SDK is currently running an OTA update.
-
listenToOtaProgress(
OtaProgressCallback onProgress) → void - Registers the legacy OTA progress callback.
-
listenToOtaProgressUpdates(
ValueChanged< OtaProgress> onProgress) → void - Registers the typed OTA progress callback.
-
startOtaUpdate(
String uuid, String filePath, {String? deviceName}) → Future< bool> - Starts an OTA update with a local firmware file path.
-
startScan(
) → Future< bool> - Starts BLE scanning for OTA-capable devices.
-
stopScan(
) → Future< bool> - Stops the current BLE scan.