Skip to content

Some DfuProgressListenerAdapter events are not fired #39

@haoyuant

Description

@haoyuant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions