Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 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.
1 Answer
10 years, 6 months ago.
There are lots of examples in the cook book,
<<code>
- 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