flutter-nordic-dfu
flutter-nordic-dfu copied to clipboard
Some DfuProgressListenerAdapter events are not fired
In the Flutter, it seems that only few events are fired during DFU, in my case, they are onDfuProcessStarting
, onProgressChanged
and onDfuCompleted
.
onError
gets called in the native layer, but looks like the channel method call arguments is not in correct format, this event expects
progressListener?.onError(
call.arguments['deviceAddress'],
call.arguments['error'],
call.arguments['errorType'],
call.arguments['message'],
);
But the actual arguments the Flutter part receives is just the deviceAddress
in String, not even in Map.
It would be good to fix the issues and get all events work. Thanks.
I have same problem