stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
425 stars 346 forks source link

How to not lose data when freematics one+ disconnects from the internet during a trip? #69

Open alexandrehsd opened 5 years ago

alexandrehsd commented 5 years ago

During some tests with freematics one+ using my phone as an access point. I noted that whenever my phone lost connection for poor signal quality, freematics stopped sending data to the server (what I think is natural) and stopped saving it to the SD card (what I think is catastrophic!). So I lost all the data generated during this period.

Is there any mode (or piece of code) that allows me to save the data in the SD card during a no-connection period or even to store it and send it immediately after restoring connection?

wally2511 commented 3 years ago

@alexandrehsd I too have this problem! Did you ever find a fix?

I think the program is buffering the data and not writing to the SD card in the absence of an internet connection.