startOtaUpdate static method
Start OTA firmware update process.
fileBytes: Raw bytes of the DFU file to uploadreset: Whether to reset the device after update (default: false)
Returns true if update started successfully, false otherwise.
Implementation
static Future<bool> startOtaUpdate(
Uint8List fileBytes, {
bool reset = false,
}) async {
final ok = await _method.invokeMethod<bool>('startOtaUpdate', {
'file': fileBytes,
'reset': reset,
});
return ok ?? false;
}