Is there any example code for subscribe notify?
Opened this issue · 0 comments
hbsyzbh commented
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);
}
}