7 years, 3 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:

The MultiConnect® mDot™ offers significantly longer range and improved radio performance compared to traditional wireless solutions—resulting in greater transmission range and reduced capital expense.

1 Answer

7 years, 3 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 Weitao xu 16 Aug 2017

You 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 Sarah Marsh 16 Aug 2017

Thank you so much!

posted by Weitao xu 24 Aug 2017