Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a file with accelerometer event data for an hour in flutter #4

Open
rubana28 opened this issue Mar 1, 2021 · 4 comments
Open

Comments

@rubana28
Copy link

rubana28 commented Mar 1, 2021

I am trying to build an app which will
1)capture accelerometer, gyroscope data
2)write the data into a file for 1 hour and after 1 hour send that file to the server without pressing any button

Now, I tried to define the timer class to perform that 1 hour countdown. But It didn't show the result.

Can anyone suggest me how can I write the accelerometer data for an hour into a file?

@rubana28
Copy link
Author

rubana28 commented Mar 2, 2021

@zesage Can you please tell me the meaning of this line "Duration.microsecondsPerSecond ~/ 60" ? what does it mean by microsecondsPerSecond ~/60?

@zesage
Copy link
Owner

zesage commented Mar 12, 2021

it's the update interval (in microseconds), which means receive data from the sensor 60 times per second.

@rubana28
Copy link
Author

it's the update interval (in microseconds), which means receive data from the sensor 60 times per second.

Thanks for your reply. Can you please tell me how can we store this sensor data into a file for 1 hour? @zesage

@0ttik
Copy link

0ttik commented Dec 29, 2021

it's the update interval (in microseconds), which means receive data from the sensor 60 times per second.

Thanks for your reply. Can you please tell me how can we store this sensor data into a file for 1 hour? @zesage

You should use some kind of database probably. For example, Hive or Sqflite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants