Using a MangOH Red board with WP7607 module, I tried to develop an app very similar to the RedSensorToCloud example from the MangOH github. The main difference is that I need to record a lot of sensor data even when my device is offline. For instance I need to record the accelerometer and gyro 3-axis every 100ms + GPS every 1sec during several hours.
I used the le_avdata_CreateRecord API to create my record. But after few seconds I can not add more data into it (le_avdata_Recordxxxx API returns LE_NO_MEMORY).
I tried to create a list of records, but again after few minutes or hours my application stops (getting “le_avdata_client.c SessionCloseHandler() 444 | ======= ‘recorder.avPublisherComponent.le_avdata’ service spontaneously disconnected ========” )
What is the best way to deal with this?
Based on the available RAM on the WP7607 I thought that I could keep more sensor data in RAM.
Or should I store the records in non-volatile memory? Is there a sample code that shows how to do so?