firmwareSandsara
playlistCallbacks_name Class Reference

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

Inheritance diagram for playlistCallbacks_name:
Collaboration diagram for playlistCallbacks_name:

Detailed Description

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

Sandsara is always playing back a playlist that contains certain paths. This characteristic is used to know or change the current playlist. all the playlists are store in a text file but with .playlist extension and this contains the file name of the path to be reproduced. For example, a generic playlist file will looks like this:

path1.txt
path2.txt
path3.txt
path4.txt

Properties:

  • Write
  • Read

UUID: 9b12a048-2c6e-11eb-adc1-0242ac120002

Usage: you can write to this characteristic to change to a playlist, or in the same way you can read it to know the current playlist. To change a playlist just write to this characteristic the name of the playlist you want to playback (ignoring its extension, for example, if you want to change to “geometry.playlist” just write “geometry”). Be sure you have sent the playlist to Sandsara before or make sure it already exists on the SD card.

Range: accepted values are 0 or any other diffeent than 0.

  • 1 for clockwise direction.
  • 0 for counter clockwise direction.

**responses: **

  • "ok" means the playlist was changed successfully.
  • "-1" means the playlist you try to change does not exist.
Note
when you write to this characteristic you will be notified by the playlistCharacteristic_errorMsg characteristic for a response.
See also
How to send a file? –> FilesCallbacks_receive, How to read the response of a characteristic

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