Skip to main content
Graduate
June 18, 2024
Solved

Sharing Text file

  • June 18, 2024
  • 1 reply
  • 1269 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

    1 reply

    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
    Graduate
    June 18, 2024

    Hello Andrew,

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

     

    Super User
    June 18, 2024

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