jspyker - 2022-02-22

I've been using the CODESYS python scripting feature to automate downloading programs and licensing our devices. I've done this as we are looking quickly setup many devices.

I'm having trouble with the licensing side, and can't find much info about it online. Connecting to the device/gateway, downloading programs etc. with are all working fine via the python scripting.

I have my python script setup to login into devices and license the target device. I use the following python function to attempt to activate a license. (where "key" is a variable containing a valid license)

device.activate_license(key, "http://license.codesys.com/")

After running this function the script says that the license has been applied successfully, but upon double checking the device this is not the case! Even though the function is reporting being successful it has not applied the license to the device at all.

Current versions I am using:
Codesys Version - CODESYS 3.5.17.0
Device Runtime - Linux ARM 4.1.0.0

Would be great to hear if anyone has any ideas on this, keen to streamline our licensing process.