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.
7 years, 4 months ago.
how to write and read file in mdot
Anyone can tell me how to write/read a txt file for mdot? I read this post https://developer.mbed.org/questions/61634/Write-and-read-from-internal-Flash-on-mD/ https://developer.mbed.org/questions/78297/mdot-compilation-error-with-LocalFileSys/
but I didn't find the file in the flash. After I write and store a txt file, how can I see it? Thanks!
If you know the answer please tell me! xuweitao005@gmail.com
Question relating to:
1 Answer
7 years, 4 months ago.
Please look at this documentation - https://docs.mbed.com/docs/mbed-os-api-reference/en/latest/APIs/storage/filesystem/
Here is an easy example - https://github.com/armmbed/mbed-os-example-fat-filesystem
Thanks for your help. I can run the code on my mdot, and get the same message in the terminal, but I also want to know how can I copy this file to my PC. I want to analyse the data in the file, for example, I want to store the RSSI values in a *.txt file and they copy this file to PC to do further analysis. Many thanks!
posted by 16 Aug 2017You would need to use an SD block device backed by a micro SD card that you can later plug into your computer. I don't think the mdot has an SD card slot, but there are components you can buy - https://developer.mbed.org/components/cat/storage/
posted by 16 Aug 2017