I'm attempting to store log data on my nRF52832 using the little file storage, and then allow a client to access this over BLE. From what I can tell, the data transfer can be handled using the MCUmgr, as described here.
I've implemented the lfs example (v2.0.0\zephyr\samples\subsys\fs\littlefs) in my code, and am updating and writing the boot count to my file. My mount point is /lfs and the variable I am writing is /boot_count, as per the example.
My iOS app developer is trying to read the info I am storing in my file storage, but is consistently getting errors back when he tries to access my file storage. This is the outcome of his testing:
I have tried with and without an extension, also with and without the folder/mount point. Here are some of my test results: /lfs/boot_count MGMT_ERR_ENOENT /lfs/boot_count. MGMT_ERR_ENOENT /lfs/boot_count.txt MGMT_ERR_ENOENT /lfs/boot_count.000 MGMT_ERR_ENOENT /lfs/boot_count.0000 MGMT_ERR_ENOENT /boot_count MGMT_ERR_ENOENT /boot_count. MGMT_ERR_ENOENT /boot_count.txt MGMT_ERR_ENOENT /boot_count.000 MGMT_ERR_ENOENT /boot_count.0000 MGMT_ERR_ENOENT boot_count.0000 MGMT_ERR_EINVAL boot_count.000 MGMT_ERR_EINVAL boot_count.txt MGMT_ERR_EINVAL boot_count MGMT_ERR_EINVAL Also tried to escape the ‘/’: //lfs//boot_count MGMT_ERR_ENOENT //boot_count MGMT_ERR_ENOENT \\lfs\\boot_count MGMT_ERR_EINVAL
Can anyone explain how the file storage and data is configured, and what my App developer needs to be searching for in order to be able to read the info I am storing on my device?
Cheers,
Mike