Skip to content

writeWithoutResponse() returns too quickly on Android #62

@kanayo

Description

@kanayo

I used your Cordova plugin to talk to a AnD BLE scale with success.

Now porting the app over to NativeScript and using this plugin.

Ran into a problem on Android using writeWithoutResponse(). The old plugin waited for onCharacteristicWrite() to be called before calling the success callback. This plugin returns immediately.

Now when starting another BLE call after writeWithoutResponse() returns it fails.

I changed writeWithoutResponse() to use the same logic as write(), setting the onWritePromise, and it all works perfectly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions