Open
Description
Hi,
I have a problem. Probably I am using the plugin wrong.
Lets say I know the Device ID and I call:
antplus.subscribeHR(DEVICE_ID, function(response) .... It does work.
I can do antplus.searchDevices('HEARTRATE', function(device) ... and also works
BUT, If I do searchDevices and inside the success function I call lets say: subscribeHR it abruptly close the app.
I try doing it by calling a function instead of putting the method inside the search device and also to make sure I do it just once, just in case it was doing and infinite loop.
How do you subcribe to the devices after you search?
This It what make the error happend:
antplus.searchDevices('HEARTRATE', function(device){
antplus.subscribeHR(device.antDeviceNumber, success, failure);
}, failure);
Thanks
Metadata
Metadata
Assignees
Labels
No labels