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.
10-21-2021 01:44 PM
Hello,
I'm trying to integrate with the license management interface. I've added the plug to my snapcraft.yml:
plugs:
licensing-service:
interface: content
content: licensing-service
target: $SNAP_DATA/licensing-service
I expect this to result in a unix socket being created in $SNAP_DATA/licensing-service. I can see that the licensing-service folder ends up getting created, but no unix socket. I've tried on a hardware ctrlX which is up to date and running e.g. rexroth-deviceadmin - 1.10.2.
What am I doing wrong?
Regards,
Roger
Solved! Go to Solution.
10-21-2021 03:19 PM
Please have a look to this topic.
10-21-2021 11:50 PM
Thank you, I have tried the example there but when I try to build the snap I am given the error:
failed to validate plug=licensing-service: `target` is required for content slot
The SDK documentation I have suggests I should be using the `target` key as well. I'm targetting core20.
Regards,
Roger
10-22-2021 09:28 AM
I updated the topic i mentioned above.
Did you check if your plug is connected?
10-26-2021 07:52 PM
Thank you for the update. I have added `licensing-service` to my list of plugs, but it has made no difference. I checked with `snap connections` and can see that the licensing service is connected to my application. Is there anything else I could provide that would help with this?
10-27-2021 01:49 AM
I've noticed I can access the licensing API by connecting to http://localhost/<licensing url>. I can see the logs telling me the the features I am requesting are not available, which is expected as I have no license to test with at the moment. Is connecting to localhost like this a workable solution?
10-27-2021 07:50 AM
Yes you can use the ctrlX License Manager API to check for your license (acquire a license). The description how to do it can be found here: https://<IP of your control>/doc/api/license-manager/#/Licenses/acquireLicense. Here you can also try out the API by sending some example requests to the license manager.
But make sure to 'Authorize' first by using the 'Available authorizations dialog'.
10-27-2021 10:06 AM
As long as you are an app on the same control you can use the IP or also localhost.
10-27-2021 11:20 AM
That's great, thank you. I hope that can make it into the documentation 🙂