Filesystem access to app data

Hi,

We currently have an application installed as a snap on our Bosch development hardware. This application reads and writes a few files on the filesystem in the snap's data directory (e.g. /var/snap/name/ver; unsure of what the exact path is on the Bosch HW).

My question is if there is some way to access these files on the PLC through the web interface or an application, etc? I know that SSH access has been disabled for security reasons. Is it necessary for the application to expose functionality to read or write these files e.g. through some sort of REST API? We need to be able to read or write these files in production.

And what is the recommended approach? To be clear, we're only talking about reading and writing data specifically for this app, and nothing else.

Thank you.

Best reply by CodeShepherd

The standard way of exchanging data between different apps is putting them into the active configuration (app data) that is a shared file system and is used for storing/restoring configuration data.

See this post how to use from your own app.

See this post how to access to these data from outside of the control (via WebDAV).

As addition:

PLC file system is also part of the app data. See this post.

You could also use SD-card or USB storage. See this post.

Use SD-card storage from PLC. See this post.

View original
4 replies