Hi! I am trying to access RunningDynamics data, but i run into problems. I created a very simple example how to reproduce it:
using Toybox.WatchUi;
using Toybox.AntPlus;
class RunDynTest1View extends WatchUi.SimpleDataField {
var MyDevice = null;
// Set the label of the data field here.
function initialize() {
SimpleDataField.initialize();
label = "Cadence";
// is the Listener instead of null owrkaround still necessary?
MyDevice = new AntPlus.RunningDynamics(new AntPlus.RunningDynamicsListener());
}
function compute(info) {
var MyCadence = 1.0;
var RunningDynamics = MyDevice.getRunningDynamics();
if(RunningDynamics != null) {
MyCadence = RunningDynamics.cadence;
}
return MyCadence;
}
}
I am aware that I don't get usable values while using the Simulator, but it should run. It runs fine in the Device Simulator, but when i make a "Run No Evil Test" run or sideload it to my watch, it crashes:
Error: Symbol Not Found Error
Details: Failed invoking <symbol>
Stack:
Encountered an app crash.
I am targeting a Fenix 6 and chose SDK version 3.0. I tried writing a log file by creating a text file with the name of my app in the log directory on my watch, but i didn't get helpful information from there.
Any feedback would be welcome, thanks!