5 years, 6 months ago.

logging data to local file system (LPC 1768)

I am trying to log sensor data into the LPC 1768 local file system from UART port.

Please can anyone help please as i am not familiar with the Local file system.

Thanks......

Tonbara Akpuruku.

Comment on this question

1 Answer

5 years, 6 months ago.

There are lots of examples in the cook book,

<<code>

  1. include "mbed.h"

LocalFileSystem local("local"); Create the local filesystem under the name "local"

int main() { FILE *fp = fopen("/local/out.txt", "w"); Open "out.txt" on the local file system for writing fprintf(fp, "Hello World!"); fclose(fp); }

<</code>>

there should be quite a few examples out there.

don't forget, more info more help.

Ceri

Thanks Ceri, seen that and actually got what i want. this keeps overwriting in a continuous loop but opening a log file did the job

posted by Tonbara Akpuruku 09 May 2014

what should I do if I have to assign a saved integer value in sd card to a variable in the code. I have to increment and save it after signal stops coming in.

posted by jayendra mishra 20 Oct 2016

You need to log in to post a question