Hi,
I am trying to add a Body Battery graph to my watch face for 4.1.0 Beta.
I have a working Heart Rate graph, so I thought it would be a simple matter to copy that but...
On the Simulator I can get the Body Battery History and I can even iterate through it, so long as I don't try and read it.
The following section of code works:
var bbIterator = ActivityMonitor.getBodyBatteryHistory();
var sample;
if(ActivityMonitor has :BodyBatteryData) {
do {
sample = bbIterator.next();
System.println("sample: " + sample);
} while(sample != null);
}
It produces the following output:
20 sample: Obj: 175
sample: null
However, this does not:
var bbIterator = ActivityMonitor.getBodyBatteryHistory();
var sample;
if(ActivityMonitor has :BodyBatteryData) {
do {
sample = bbIterator.next();
System.println("sample: " + sample.bodyBattery);
} while(sample != null);
}
It produces the following output:
Error: Symbol Not Found Error
Details: Could not find symbol 'bodyBattery'
Yet in the debugger there is:

Which looks rather odd...
Dare I try it on my watch?
Many thanks,
Paul