firmwareSandsara
FilesCallbacks_send Class Reference

[BLE Command] This class is used to create and object to be called when you write the sendFlag characteristic. More...

Inheritance diagram for FilesCallbacks_send:
Collaboration diagram for FilesCallbacks_send:

Detailed Description

[BLE Command] This class is used to create and object to be called when you write the sendFlag characteristic.

sendFlag characteristic is used to start the transfer of a file from the SD card to the BLE Client.

Properties:

  • Write
  • notify

UUID: fcbffe72-2af1-11eb-adc1-0242ac120002

Usage: to read a file from the SD card you have to read chunks of bytes corresponding to the desired file, to do it follow the next steps.

  1. write to FilesCallbacks_sendFlag characteristic the name of the file you want to read.
  2. wait to be notified by the fileErrorMsg characteristic and read it.
  3. read this characteristic to get the bytes of the desired file.
  4. repeat step 3 until you read less than 512 bytes. when you read less than 512 bytes means that you have read all the bytes of the file.

Range: accepted values are a name, for example, "Old Path.txt" to start the transmission of this file.

See also
How to read the response of a characteristic

The documentation for this class was generated from the following file: