firmwareSandsara
FilesCallbacks_receive Class Reference

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

Inheritance diagram for FilesCallbacks_receive:
Collaboration diagram for FilesCallbacks_receive:

Detailed Description

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

receive characteristic is used to receive the bytes of the file you want to transfer.

Properties:

  • Write
  • notify

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

Usage: in order to transfer a file to this device you need to follow the next steps:

  1. Activate notifications of this characteristic.
  2. write to FilesCallbacks_receiveFlag the name of the file you want to transfer.
  3. write to this characteristic the bytes of the file in chunks of 512 bytes.
  4. wait to be notified from this characteristic.
  5. repeat steps 3 and 4 until you have sent all the bytes of the file
  6. write to FilesCallbacks_receiveFlag characteristic any message to finish the transfer
  7. you will be notified by FileErrorMsg characteristic with "done"

Range: accepted values are a string of bytes of no more than 512 bytes length

See also
How to read the response of a characteristic

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