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

RSSI (Received Signal Strength Indicator) #59

Open
makerstorage opened this issue Jul 1, 2024 · 1 comment
Open

RSSI (Received Signal Strength Indicator) #59

makerstorage opened this issue Jul 1, 2024 · 1 comment

Comments

@makerstorage
Copy link

Hi

I hope this message finds you well. I am using the ant-plus library to capture heart rate data from a Polar Verity Sense sensor. While I can successfully log the heart rate data, I am having trouble extracting the RSSI (Received Signal Strength Indicator) value.

Could you please provide guidance on how to correctly obtain the RSSI value with this sensor?

Thank you for your assistance.

Best regards,
Nuri

@makerstorage
Copy link
Author

makerstorage commented Jul 1, 2024

the code I am running:

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

scanner.on('hbData', function (data) {
    console.log('Heart Rate Data:', data);
});

stick.on('startup', function () {
    console.log('ANT+ stick startup');
    scanner.scan();
});

if (!stick.open()) {
    console.log('Stick not found!');
}

output:

Heart Rate Data: HeartRateScannerState {
  DeviceID: 14850,
  BeatTime: 43225,
  BeatCount: 59,
  ComputedHeartRate: 86,
  HwVersion: 1,
  SwVersion: 11,
  ModelNum: 4,
  BatteryLevel: 43,
  BatteryVoltage: 15.99609375,
  BatteryStatus: 'Ok'
}

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

1 participant