Downloading Logged Sensor Data
Hi Eric,
I have been trying to set the board to log sensor data and then download the logged data
exploring the Logging API in the metawear api.
I got the board logModule= mwBoard.getModule(Logging.class);
got the
long logCapacity=logModule.getLogCapacity();
Log.i("TAG","Log Capacity= "+logCapacity);which returns
Log Capacity= 11136
Now when I try to download as,
com.mbientlab.metawear.AsyncOperation<Integer>
i= logModule.downloadLog(0.1f,new Logging.DownloadHandler() {
@Override
public void onProgressUpdate(int nEntriesLeft, int totalEntries) {
Log.i("MainActivity", String.format("Progress= %d / %d", nEntriesLeft,
totalEntries));
if (nEntriesLeft == 0) {
mwBoard.disconnect();
}
}
});
further when I do a ,Log.i("TAG","Res:"+i.result());
I get a Task Not Yet complete Exception.
So my question is,
1) How do you fetch the data logged in the board memory.
2) How do you configure (as in the Metabase App) which sensor data to be logged and at what interval.
This discussion has been closed.
Comments
setLogMessageHandler
instead of subscribe. You still need to start the accelerometer and logger to log data.onFailure
function return an exception when you create a date route?