Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Is there any example code for subscribe notify? #92

@hbsyzbh

Description

@hbsyzbh

Dear sir:
Is there any example code for subscribe notify?

I use code like below , only got subscribed call back, no any subscribedResult.
Not the device issue, because device work well with LightBlue Explorer
new Promise(function (resolve, reject) {
bluetoothle.subscribe(resolve, reject,
{ address: address, service: serviceUuid, characteristic: characteristic.uuid });

                }).then(subscribeSuccess, handleError);

function subscribeSuccess(result)
{
if (result.status == "subscribedResult") {
alert(result.value);
}
}

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