How do you load a sketch library for the Opta using the PLC IDE?
Hello @turbotyson
Navigate to the resources tab and open the Sketch > Libraries window
Then click the Add button and insert the library name and needed version.
The arduino-cli will try to download the library that you wrote, in case of not finding it, it will not be added and shown on the "Output" terminal.
Is it possible to use own/custom libraries as references here somehow? Or is it only the ones that are external/through the package manager?
Right now it is not possible.
Only the ones available through the library manager, yes.
Where can I see them? List somewhere?
@Jrokgotland on the library manager
Hi @PMarquinez I tried to add the ArduinoIoTCloud library but it's not working.
Is this library supported?
Hi, everybody based on my past experiences, in case if you are unable to compile the "sketch" part in the PLC IDE its good practice to try older versions of used libraries. For example, I was able to use the ArduinoJSON library but only with version 6.21.0 and non of the higher versions compiled.
Please suggest anything if you have other solutions.
Hi all, just for a little more assistance, I've found that in the folder C:\Users[user]\AppData\Local\T\A on my machine, there is a file library_index.json. In that file is a complete list of the available libraries and versions that you can use in the PLC IDE sketch library designation. It seems that the PLC IDE uses those links to then download the library you choose. For a given library, i just choose the latest version available in that file and it'll grab it without any worries. This isn't always the latest available in the Arduino IDE. Interested to hear if this works for others too.
Hi all,
I am very new to Arduino so please forgive my inexperience -- I was able to locate the "library_index.json" file on my machine and found the library I want to add (Name: Stepper, Version: 1.1.3). I used the Sketch --> Libraries interface to try and add the library. If I am understanding the next steps correctly, I compiled my sketch hoping the PLC IDE would install the requested library . . . compile completed successfully, I refreshed my library tree, but I still do not see the new library.
I also tried to use the Library Manager to see if the new library was now available to manually add, but nothing new shows up on the manager. I also looked through the several folders where the current libraries are located and did not see anything related to the new library.
Did I miss a step along the way? Thanks in advance for the help.
edit: When I try to add the library, the Library Manager only looks for .plclib or .pll file types. I assume the library I am looking for is the standard IDE library filetype and not PLC specific, so it does not show up as available.
