I have a watchface app and want to access data from the device (Edge 520 plus). I was advised to try using the Activity class, but so far am unsuccessful. I don't really understand in this context what an activity is in this case - do I need to somehow initialise an activity? The SDK documentation is pretty vague.
I thought I could do this using Activity.getActivityInfo(). This returns a non-null object. However all fields return null.
For example I have:
var info = Activity.getActivityInfo(); var value = info.currentPower;
This is just using "Toybox.Activity".
The simulator is connected to a power meter so should be returning non-null vales.
What am I missing. Do I need to start an activity? If so how?
An example would be useful.