Hello,
so i managed to get the Movement sensor write data to the flash memory, but it only works, when the movement sensor is active and in connection currently.
But what we need is, the movement sensor should always stay active and write to flash.
My plan is, every change of the movement sensor i calculate the vector length of all 3 axes. I don't need exact measurement of all axes, just the amount of movement in the time when there is no connection.
As soon as the SensorTag is connected, the flash data will be available as characteristic and the flash should be reset to 0. After disconnect the SensorTag should restart writing to flash.
I added the switch for that in "static void SensorTag_taskFxn(UArg a0, UArg a1)" in SensorTag.c and it's enough if the write will be every second, just the movement sensor should stay on, instead off.