Dear all,
I am playing with BLE CC2540.
I would need to implement a solution for file transfer over BLE (although I know BLE is not really designed for it, but I expect it to work fine where transfer time is not an issue).
If I am correct, there is not sample code for a file transfer, but I am not sure about the steps I need to do.
Should I:
1- create a new GATT profile (or modify an existing one as Simple Gatt profile) in order to have a characteristic that can handle a longer data size than 1?
2- is it the case that the maximum user data transfer in a single transaction can be 80 bytes (so my characteristic will be 80)?
3- when I have a data size established for a characteristic... can I send less? let's assume I have 80 but only 50 bytes of data... do I need to add 30 bytes of zeros or just send the 50 good ones?
4- finally I guess I have to split my files in the characteristic size and send each chunk in a different transfer message, right?
Can please someone advise if there is some misunderstanding in my logic?
Thanks for your help.
Mik