PLC IDE freeze/crash problems when connecting to OPTA

Hi,
I am trying to establish a connection to an MQTT server on my OPTA Wifi. This works fine if done via the traditional Arduino IDE. However, if I try to upload the same sketch through the PLC IDE, problems arise: The code compiles and is (seemingly) downloaded to the PLC, but when I press "Connect", the IDE becomes unresponsive and freezes. If I unplug my Opta during this state of unresponsiveness, the IDE starts responding again (resulting in an error). After downloading, there is no activity from Opta on my MQTT server, so I suspect the sketch is not actually running or the connection fails.

This does not happen if I upload "basic" sketches, but even using the Opta "WifiWebClient" example results to this problem.
Things I have already tried: Removing and re-installing PLC IDE and IDE tools, using different USB cables and computers, checking the port setting in the Set Up Communication-tab, rebooting. Is there anything else I should try at this stage?

WR

I believe to have figured out the problem: The freezing seems to only happen when trying to connect when the sketch is still executing the setup function.

Hello, I followed this guide. My operating system is Windows 11 Pro. I get to the last step of point 5, then the Arduino PLC IDE program hangs up. By the way, I have the same problem with Windows 10 Pro.

Here is the solution to the problem. also works with the Opta:

Customer support could help me fix it. I opened a new topic for this issue here, in case someone else encounters this problem. :wink:

I have found that if I try to set the IP address of my OPTA in a sketch then I am no longer able to connect to it via Ethernet or USB. This includes if I uncomment the example sketch code from the default project. (IDE Version 1.0.3)