How to configure logger to log only when some conditions are satisfied
Hello. I am developing an iOS application that can log sensor data to MMS+ and retrieve stored data.
My question is that it is possible to log accelerometer, gyro data only when certain conditions are met (e.g. if data.x > 0.5 & data.y > 0.5 & data.z > 0.5 => start log) and stop when they are unsatisfied. Also, data stored before logging is stopped should not be deleted when logging is restarted.(I hope the data to be logged following the existing data after restarting.) Since it takes a long time between device startup and data retrieval, I want to save device memory as much as possible.