Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event is not emitted for SpeedSensor #27

Open
fusionstream opened this issue Mar 30, 2020 · 4 comments
Open

Event is not emitted for SpeedSensor #27

fusionstream opened this issue Mar 30, 2020 · 4 comments

Comments

@fusionstream
Copy link

The event speedData is not emitted when using SpeedSensor but is emitted when using SpeedScanner.

Device is "verified" as attached via the attached event when using SpeedSensor

@Loghorn
Copy link
Owner

Loghorn commented Apr 5, 2020

That's odd because they are both calling the same function to process the data.
Can you send me some code that shows the problem?
Thank you

@fusionstream
Copy link
Author

Yea I looked through it as well and figured I might have missed something else so I opened this issue. But I guess not. Weird. Some code:

var Ant = require('ant-plus');
var stick = new Ant.GarminStick3;

var speedysense = new Ant.SpeedSensor(stick);
var hrsense = new Ant.HeartRateSensor(stick);

hrsense.on('hbData', (e) => {
    console.dir(e);
});
speedysense.on('speedData', (speed) => {
   console.dir(speed); //nothing happens
});
speedysense.on('attached', (data) => {
    console.log("Attached!", data);
});
stick.on('startup', function () {
    hrsense.attach(1, 11905);
    speedysense.attach(2, 33135);
});

@fusionstream
Copy link
Author

Initially I thought it was a channel issue as I was playing around with channels but the attached event dispelled that for me although this is my first time using Ant+. Am using a Wahoo Ant+ stick which I understand is just a branded garmin.

@Alabate
Copy link

Alabate commented Jun 13, 2020

Probably related to this issue #31

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

No branches or pull requests

3 participants