Watch app that sends heart rate sensor data to edge device

Is it possible to send the heart rate of the internal watch sensor to an edge device in your own CIQ app?

In all Garmin apps you can enable sending the heart rate and an edge device can receive that as an external Ant sensor.

Thanks for any tips and tricks!

  • Hi Jim, this is a nice workaround but I'm not sure if the Broadcast HR hotkey only works for a short time period or until the activity is stopped. I will try that, thanks for this hint!

    Do you have an idear if it is possible to enable the broadcasting HR programmatically by using a basic SDK functionality e.g. Toybox.Sensor or Toybox.Ant?

  •             var FF = 0xFF;
                var message = new Ant.Message();
                message.setPayload([0x46 /*70 - data page request*/, FF, FF, FF, FF, 0x04, 9, 1] as Array<Number>);
                GenericChannel.sendAcknowledge(message);
    

    This is the code my datafield uses to send a data page request to the HRM. But I'm not sure you can or if it's a good idea to try to send (pass) HR data from your app. Second I'm not sure if you can even "pretend" to be a HRM from the widget code. I mean maybe you can communicate between the watch and the edge but I'm not sure if the channel you will be able to create can be seen as a HR device from the edge.

    Can't you run the widgets on the edge instead of the watch?

  • Broadcasting the HR by starting it with the hotkey works perfectly!

    This is very good but also a step backwards in comparison to older Fenix devices. Here everythings simply works without any hotkey or code modifications in your app.