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

Is there any example code for subscribe notify? #92

Open
hbsyzbh opened this issue Mar 5, 2019 · 0 comments
Open

Is there any example code for subscribe notify? #92

hbsyzbh opened this issue Mar 5, 2019 · 0 comments

Comments

@hbsyzbh
Copy link

hbsyzbh commented Mar 5, 2019

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);
}
}

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

No branches or pull requests

1 participant