Hello,
i just started developing an app that uses the BBI data from the Forerunner 645M.
I try to implement simple sensor data reading and then display the BBI array on the screen.
It works in the simulator with simulated sensor data but when i try to run it on the watch the application instantly crashes.
Permissions are set for Sensor.
I started with the sample application and added these lines to the code. As soon as i use the Sensor.Toybox it crashes on the Watch:
using Toybox.Sensor;
class BBIApp extends Application.AppBase {
function initialize() {
AppBase.initialize();
var options = {
:heartBeatIntervals => {:enabled => true},
:period => 1
};
Sensor.registerSensorDataListener(method(:onSensorData), options);
}
function onSensorData(sensorData){
// Do something with the data
}
Any idea what to do?
Thanks in advice.