Metamotion R Logging Filtered Data
I'm logging using a periodicsample filter:
MBLFilter<MBLQuaternionData *> *quaternionFilter = [_device.sensorFusion.quaternion periodicSampleOfEvent:250];
[[quaternionFilter startLoggingAsync];
However I'm wondering how I might go about downloading the log if I can't persist a reference to the filter. It works if the app continues to run, and I keep a reference to the filter and use that to download the logs:
[[_quaternionFilter downloadLogAndStopLoggingAsync:YES progressHandler:^(float number)...
However I can't really do that if I set the device to start logging, and then at some point later I want to download the data after the app has closed and re-opened. Is there a way to enumerate the active filters for an object, or retrieve it somehow?
This discussion has been closed.
Comments
MBLEvent
documentation:filter?.downloadLogAndStopLoggingAsync(true);