Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some DfuProgressListenerAdapter events are not fired #39

Open
haoyuant opened this issue Oct 13, 2021 · 1 comment
Open

Some DfuProgressListenerAdapter events are not fired #39

haoyuant opened this issue Oct 13, 2021 · 1 comment

Comments

@haoyuant
Copy link

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.

@aBuder
Copy link

aBuder commented Dec 8, 2021

I have same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants