I'm currently working with the nRF52832 and NCS V2.2.0, and in my application, I store a log file of activity on the nRF52 device, and when someone connects to it with an iOS or Android device, I want to be able to send that log file to them in JSON format.
My data is all stored in a struct, and Nordic have API's to convert it into the JSON format I want, but I'm just trying to home in on the easiest and quickest (in terms of development, not necessarily transfer speed) for getting a file that will be < 50kB across the BLE connection.
We originally looked at using SMP, and storing the log file in littlefs on the nRF52, but the flash memory overheads of littlefs were too high for the memory space we have available (< 20kB).
I've looked at a few of the examples Nordic has put together for NCS, namely the peripheral/client UART and throughput examples. I think I can probably butcher both of these to achieve what I want, but I'm not sure of the compatibility of these with my iOS/Android device, so don't want to go down a path that ultimately won't get me where I want to be.
The other option I've considered is to just set up a custom service on both the client and server and just send/notify chunks of data that way and get the client to reconstruct the file.
Has anyone done something like this and willing to share how they went about it?
Cheers,
Mike