FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
09-20-2024 12:05 PM
Hello,
I´m doing some tests with SDK cersion 2.6.7 and CtrlX Works 2.6.3 AppBuildEnvironment. I would like to use Python and access files generated by Node-red or by the PLC app. I would expect to get access to the path '/var/snap/<myapp>/current/solutions/activeConfiguration/node-RED/<file_to_be_used>' but I can´t access, even creating the plug to solutions in my snapcraft.yaml file and changing the package_manifest file to create the directory of my app. Even if I snap the "appdata" sample from github, I can´t see the app solution directory.
09-23-2024 09:48 PM - edited 09-23-2024 10:58 PM
Hello @rlilla ,
I just build the appdata Python sample and also saw that the app configuration directory is not visible upon installation. Once I saved the active configuration to an archive, the directory became visible. You can see the logs from this process below.
You should be able to access files using the path structure you specified above, so long as they are read accessible and the client is authorized. As an example, here I read a file from the PLC app data from Node-RED.
It seems the active-solution plug is not connecting with the sample app by default. A connect-plug hook that creates a directory in the activeConfiguration fixed this, but I do not have a good answer as to why. I thought these only execute when the plug is connected.
rexroot@VirtualControl-2-6-8:/var/snap/sdk-py-appdata/common/solutions/activeConfiguration/demo$ snap connections sdk-py-appdata
Interface Plug Slot Notes
content[package-assets] rexroth-deviceadmin:package-assets sdk-py-appdata:package-assets manual
content[package-run] rexroth-deviceadmin:package-run sdk-py-appdata:package-run manual
content sdk-py-appdata:active-solution - -
network-bind sdk-py-appdata:network-bind :network-bind -
10-02-2024 09:43 AM
Hello People,
Should be the "Autoconnect" hook missing. Please check here: https://developer.community.boschrexroth.com/t5/Store-and-How-to/SDK-Empower-your-app-with-Data-Pers...
Meanwhile i have opened the request to fix the issue 😁