firmwareSandsara
FilesCallbacks_checkFile Class Reference

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

Inheritance diagram for FilesCallbacks_checkFile:
Collaboration diagram for FilesCallbacks_checkFile:

Detailed Description

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

checkFile characteristic is used to check if a file exists in the sd card.

Properties:

  • Write

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

Usage: if you want to check if a file exists in the SD card just write to this characteristic the file name you want to check and wait to be notified by fileErroMsg (fcbffce2-2af1-11eb-adc1-0242ac120002). to know if the file exists read fileErroMsg characteristic and if the response is 1 the file exists and if it is 0 file doesn’t exist.

Range: accepted values are a name, for example, "Old Path.txt", "dogs.txt", "geometries.playlist" and so on.

Response: you can receive one of these responses after you write to this characteristic.

  • "0" means the file does NOT exist
  • "1" means the file exists*.
Note
all the responses have to be read from the fileErroMsg characteristic after being notified by it.
Warning
* if the file name starts with "Sandsara-trackNumber-" you will receive "1" even if your exact filename Does not exist in the sd card but it exists with another extension, for example, if in the sd card exists the file called "Sandsara-trackNumber-011.txt" and you ask for "Sandsara-trackNumber-011.bin" you will receive "1" as a response even if "Sandsara-trackNumber-011.bin" does no exists, but "Sandsara-trackNumber-011.txt" does.
See also
How to read the response of a characteristic

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