Skip to content
Discussion options

You must be logged in to vote

Glad you got it working!

For BTHome the apps themselves don't have HRM broadcast built in, but it's pretty easy to use the app to add it. The BTHome app provides a function Bangle.btHome: https://github.com/espruino/BangleApps/blob/master/apps/bthome/boot.js#L18-L24

So you can just add the following to some boot code to make it advertise the current step count:

Bangle.on('step', function() { 
  let steps = Bangle.getHealthStatus("day").steps;
  Bangle.btHome([{type:"count16",v: steps}]);
});

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@HaLo2FrEeEk
Comment options

@gfwilliams
Comment options

Answer selected by HaLo2FrEeEk
@HaLo2FrEeEk
Comment options

@HaLo2FrEeEk
Comment options

@gfwilliams
Comment options

@HaLo2FrEeEk
Comment options

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