I am wishing to move a configuration file for Azure Sphere. Naturally SCP over SSH would work nicely. Can anyone direct me to a solution? I will have to modify the file sometimes depending on the layout of the equipment in use.
Thanks.
I am wishing to move a configuration file for Azure Sphere. Naturally SCP over SSH would work nicely. Can anyone direct me to a solution? I will have to modify the file sometimes depending on the layout of the equipment in use.
Thanks.
So... user files
READ ONLY Files
Packed files to application-image on compilation
User Home Dir ( read-only mount folder )
/mnt/apps/GUID_FROM_APP_MANIFEST/ packed_file_name.1 , packed_file_name.2 , ...
int Storage_OpenFileInImagePackage( "packed_file_name" );
return FD of /mnt/apps/GUID_FROM_APP_MANIFEST/packed_file_name
READ & WRITE Mutable Storage
User Home Dir (read-write mount folder, size = "MutableStorage": { "SizeKB": 8 }
/mnt/config/GUID_FROM_APP_MANIFEST/
Storage_OpenMutableFile() return FD of file name /mnt/config/GUID_FROM_APP_MANIFEST/default
Folder /mnt/config/GUID_FROM_APP_MANIFEST can store other files, but by default open() not exist ...
How to read, write, upload, download file/s ... user-ware
App: Azure Explore MUTABLE READ[0] MUTABLE WRITE[20] = "Mutable Storage Text" MUTABLE READ[20] Mutable Storage Text [TEST] OPEN: test.txt (fd = 4) No error information (0). FOLDER: /mnt/config/dfb1b8e6-90a9-4480-a8c6-6267e5aed1a9 FILE: /mnt/config/dfb1b8e6-90a9-4480-a8c6-6267e5aed1a9/test.txt (empty) FILE: /mnt/config/dfb1b8e6-90a9-4480-a8c6-6267e5aed1a9/default Mutable Storage Text
I thank you wizio for your sample. I think the answer lies in the mutable storage. To me it acts like home and has a clearly identifiable way to get an ID. That would be the device assigned value(like a user id). I can tie this back to a website I provide which can have the changing data with a database back store. WHen I want to affect the programming, I simple change the back store which drives the code. Just perfect.
Clem
I thank you wizio for your sample. I think the answer lies in the mutable storage. To me it acts like home and has a clearly identifiable way to get an ID. That would be the device assigned value(like a user id). I can tie this back to a website I provide which can have the changing data with a database back store. WHen I want to affect the programming, I simple change the back store which drives the code. Just perfect.
Clem