Skip to main content
Associate II
June 18, 2024
Solved

Sharing Text file

  • June 18, 2024
  • 3 replies
  • 1306 views

Hello everyone,

Recently I have been learning to create and write data to a text file in a flash drive that is connected to the STM32F407G Discovery board via USB_OTG_FS. 

Now I want to share the text file in the Flash drive to a mobile device via bluetooth.

How Can I do it ?

This topic has been closed for replies.
Best answer by Andrew Neil

@Professor_Berlin wrote:

I want to share the text file in the Flash drive to a mobile device via bluetooth.

How Can I do it ?


  1. read the text from the file;
  2. send the text over Bluetooth.

 

Or, if it's a large file:

  1. open the file
  2. read some text from the file
  3. send the text over Bluetooth
  4. repeat from (2) until done

3 replies

Andrew Neil
Andrew NeilBest answer
Super User
June 18, 2024

@Professor_Berlin wrote:

I want to share the text file in the Flash drive to a mobile device via bluetooth.

How Can I do it ?


  1. read the text from the file;
  2. send the text over Bluetooth.

 

Or, if it's a large file:

  1. open the file
  2. read some text from the file
  3. send the text over Bluetooth
  4. repeat from (2) until done
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate II
June 18, 2024

Hello Andrew,

Isn't there a way to directly share the text file like we do in our mobile devices ?

 

Andrew Neil
Super User
June 18, 2024

That is what your mobile device does when you "share" a file!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.