hello i have a problem with plc synchronization ide with arduino cloud, i can't compile the sketch, i watched many tutorials but without success.
I keep getting this error:
Kompilowanie szkicu...
"C:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_arm-none-eabi-gcc_7-2017q4_7b7be9f526b2cb64/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@C:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\variants\\OPTA/defines.txt" "@C:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\variants\\OPTA/cxxflags.txt" -MMD -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -DARDUINO=10607 -DARDUINO_OPTA -DARDUINO_ARCH_MBED_OPTA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=0 "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\cores\\arduino" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\variants\\OPTA" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\AlPlc_Opta_1.1.0_6a47dbf3c9400ad5\\AlPlc_Opta\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\ArduinoRS485_1.0.5_a61cd3c6d72c41a3\\ArduinoRS485\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\libraries\\Ethernet\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\libraries\\SocketWrapper\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\Arduino_Opta_Blueprint_0.1.0_02e6b823f3a416a9\\Arduino_Opta_Blueprint\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\libraries\\Wire" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\ArduinoIoTCloud_1.15.1_8364bde677250e67\\ArduinoIoTCloud\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\Arduino_ConnectionHandler_0.8.1_dac98845ba9a6390\\Arduino_ConnectionHandler\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\Arduino_DebugUtils_1.4.0_0354ee2edf6910cd\\Arduino_DebugUtils\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\libraries\\WiFi\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\ArduinoMqttClient_0.1.8_b1e57bf359553881\\ArduinoMqttClient\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\Arduino_SecureElement_0.1.2_bf1a85f30831f6a5\\Arduino_SecureElement\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\ArduinoECCX08_1.3.8_fb8ab5b39cf9f121\\ArduinoECCX08\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\Arduino_SerialUpdater_0.0.1_7d9c8f6383ea4320\\Arduino_SerialUpdater\\src" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\Arduino_Portenta_OTA_1.2.1_db25b9fb896a165c\\Arduino_Portenta_OTA\\src" -DCM4_BINARY_START=0x60000000 -DCM4_BINARY_END=0x60040000 -DCM4_RAM_END=0x60080000 "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\cores\\arduino/api/deprecated" "-IC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\cores\\arduino/api/deprecated-avr-comp" "-iprefixC:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\cores\\arduino" "@C:\\Users\\Piotr\\AppData\\Local\\T\\A\\internal\\arduino_mbed_opta_4.1.1_eba52fabda9bf616\\variants\\OPTA/../OPTA/includes.txt" "C:\\Users\\Piotr\\Documents\\PLC IDE\\kiedrowski_hydro\\LLSketch_build\\sketch\\LLSketch.ino.cpp" -o "C:\\Users\\Piotr\\Documents\\PLC IDE\\kiedrowski_hydro\\LLSketch_build\\sketch\\LLSketch.ino.cpp.o"
C:\Users\Piotr\Documents\PLC IDE\kiedrowski_hydro\LLSketch\LLSketch.ino:128:53: error: redefinition of 'WiFiConnectionHandler ArduinoIoTPreferredConnection'
WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);
^~~~
C:\Users\Piotr\Documents\PLC IDE\kiedrowski_hydro\LLSketch\LLSketch.ino:56:23: note: 'WiFiConnectionHandler ArduinoIoTPreferredConnection' previously declared here
WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UĹĽycie biblioteki AlPlc_Opta w wersji 1.1.0 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\AlPlc_Opta_1.1.0_6a47dbf3c9400ad5\AlPlc_Opta
UĹĽycie biblioteki ArduinoRS485 w wersji 1.0.5 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\ArduinoRS485_1.0.5_a61cd3c6d72c41a3\ArduinoRS485
UĹĽycie biblioteki Ethernet w wersji 1.0.0 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\arduino_mbed_opta_4.1.1_eba52fabda9bf616\libraries\Ethernet
UĹĽycie biblioteki SocketWrapper w wersji 1.0 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\arduino_mbed_opta_4.1.1_eba52fabda9bf616\libraries\SocketWrapper
UĹĽycie biblioteki Arduino_Opta_Blueprint w wersji 0.1.0 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_Opta_Blueprint_0.1.0_02e6b823f3a416a9\Arduino_Opta_Blueprint
Użycie biblioteki Wire z folderu C:\Users\Piotr\AppData\Local\T\A\internal\arduino_mbed_opta_4.1.1_eba52fabda9bf616\libraries\Wire (przestarzałe)
UĹĽycie biblioteki ArduinoIoTCloud w wersji 1.15.1 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\ArduinoIoTCloud_1.15.1_8364bde677250e67\ArduinoIoTCloud
UĹĽycie biblioteki Arduino_ConnectionHandler w wersji 0.8.1 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_ConnectionHandler_0.8.1_dac98845ba9a6390\Arduino_ConnectionHandler
UĹĽycie biblioteki Arduino_DebugUtils w wersji 1.4.0 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_DebugUtils_1.4.0_0354ee2edf6910cd\Arduino_DebugUtils
UĹĽycie biblioteki WiFi w wersji 1.0 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\arduino_mbed_opta_4.1.1_eba52fabda9bf616\libraries\WiFi
UĹĽycie biblioteki ArduinoMqttClient w wersji 0.1.8 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\ArduinoMqttClient_0.1.8_b1e57bf359553881\ArduinoMqttClient
UĹĽycie biblioteki Arduino_SecureElement w wersji 0.1.2 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_SecureElement_0.1.2_bf1a85f30831f6a5\Arduino_SecureElement
UĹĽycie biblioteki ArduinoECCX08 w wersji 1.3.8 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\ArduinoECCX08_1.3.8_fb8ab5b39cf9f121\ArduinoECCX08
UĹĽycie biblioteki Arduino_SerialUpdater w wersji 0.0.1 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_SerialUpdater_0.0.1_7d9c8f6383ea4320\Arduino_SerialUpdater
UĹĽycie biblioteki Arduino_Portenta_OTA w wersji 1.2.1 z folderu: C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_Portenta_OTA_1.2.1_db25b9fb896a165c\Arduino_Portenta_OTA
Used library Version Path
AlPlc_Opta 1.1.0 C:\Users\Piotr\AppData\Local\T\A\internal\AlPlc_Opta_1.1.0_6a47dbf3c9400ad5\AlPlc_Opta
ArduinoRS485 1.0.5 C:\Users\Piotr\AppData\Local\T\A\internal\ArduinoRS485_1.0.5_a61cd3c6d72c41a3\ArduinoRS485
Ethernet 1.0.0 C:\Users\Piotr\AppData\Local\T\A\internal\arduino_mbed_opta_4.1.1_eba52fabda9bf616\libraries\Ethernet
SocketWrapper 1.0 C:\Users\Piotr\AppData\Local\T\A\internal\arduino_mbed_opta_4.1.1_eba52fabda9bf616\libraries\SocketWrapper
Arduino_Opta_Blueprint 0.1.0 C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_Opta_Blueprint_0.1.0_02e6b823f3a416a9\Arduino_Opta_Blueprint
Wire C:\Users\Piotr\AppData\Local\T\A\internal\arduino_mbed_opta_4.1.1_eba52fabda9bf616\libraries\Wire
ArduinoIoTCloud 1.15.1 C:\Users\Piotr\AppData\Local\T\A\internal\ArduinoIoTCloud_1.15.1_8364bde677250e67\ArduinoIoTCloud
Arduino_ConnectionHandler 0.8.1 C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_ConnectionHandler_0.8.1_dac98845ba9a6390\Arduino_ConnectionHandler
Arduino_DebugUtils 1.4.0 C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_DebugUtils_1.4.0_0354ee2edf6910cd\Arduino_DebugUtils
WiFi 1.0 C:\Users\Piotr\AppData\Local\T\A\internal\arduino_mbed_opta_4.1.1_eba52fabda9bf616\libraries\WiFi
ArduinoMqttClient 0.1.8 C:\Users\Piotr\AppData\Local\T\A\internal\ArduinoMqttClient_0.1.8_b1e57bf359553881\ArduinoMqttClient
Arduino_SecureElement 0.1.2 C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_SecureElement_0.1.2_bf1a85f30831f6a5\Arduino_SecureElement
ArduinoECCX08 1.3.8 C:\Users\Piotr\AppData\Local\T\A\internal\ArduinoECCX08_1.3.8_fb8ab5b39cf9f121\ArduinoECCX08
Arduino_SerialUpdater 0.0.1 C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_SerialUpdater_0.0.1_7d9c8f6383ea4320\Arduino_SerialUpdater
Arduino_Portenta_OTA 1.2.1 C:\Users\Piotr\AppData\Local\T\A\internal\Arduino_Portenta_OTA_1.2.1_db25b9fb896a165c\Arduino_Portenta_OTA
Used platform Version Path
arduino:mbed_opta 4.1.1 C:\Users\Piotr\AppData\Local\T\A\internal\arduino_mbed_opta_4.1.1_eba52fabda9bf616
Error during build: exit status 1