My Edge device connects to a variety of sensors while I'm riding (HR sensor, Power Meter, Speed Sensor, Cadence Sensor, and eTap Electronic Shifting). Some of these include BATTERY LEVEL in the ANT data structure they send.
It seems like the ANTPLUS module is a way to track battery level in my ANT sensors.
I can't find any examples of an implementation of using this interface. My use case is a DataField, in which I'd like to iterate through all the currently connected ANT sensors to track their battery levels, then display an alert on screen if battery level reaches a threshold. I know ANT devices have a numeric ID so unless I hard code that ANT DEVICE 123456 is my Cadence Sensor, I'll only know that 123456's battery level is 20%, not which sensor that is.
If you have a simple example of using this interface within a datafield, I'd love to learn from your example.
Thank you!