I want to import theese libraries to use them to create a smart light system for myself.
The rest of the code already works great when I upload it via the normal IDE 2.0 but I want to use the IoT system including its dashboards to make accesing the lights easier!
This is the error message I've been getting for the last 3 days or so:
Multiple libraries were found for "EEPROM.h"
Used: /home/builder/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/EEPROM
Not used: /home/builder/opt/libraries/atmac_eeprom_1_0_0
Not used: /home/builder/opt/libraries/arduino_nvm_0_9_1
Not used: /home/builder/opt/libraries/hello_drum_0_7_7
Multiple libraries were found for "SPI.h"
Used: /home/builder/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/SPI
Not used: /home/builder/opt/libraries/eventethernet_1_0_0
Multiple libraries were found for "NRFLite.h"
Used: /mnt/create-efs/webide/1f/e3/1fe3eb2d146971240df892d9f119dcb4:crafter--/libraries_v2/NRFLite
Not used: /home/builder/opt/libraries/nrflite_3_0_3
Not used: /home/builder/opt/libraries/nrflite_3_0_2
Error during build: exit status 1
I've already read about this error and found some posts explaining I had to download the libs as .zip and change their names in the .properties file. I tried that and it did not work for me. No matter how I changed the name of the header file it just wouldn't import the correct version either.
Can someone explain this error in detail and suggest solutions? I am really out of ideas at this point!
First off, those are not errors, they are just informational messages telling you the compiler found multiple libraries and informing you which one is is using. Whatever your error is, it is probably further up screen in the part you didn't post.
You're right! I checked the console output again and found this error message:
In file included from /mnt/create-efs/webide/1f/e3/1fe3eb2d146971240df892d9f119dcb4:crafter--/libraries_v2/NRFLite/src/NRFLite.h:5:0,
from /tmp/1579860531/Untitled_jun29a/Untitled_jun29a.ino:4:
/mnt/create-efs/webide/1f/e3/1fe3eb2d146971240df892d9f119dcb4:crafter--/libraries_v2/NRFLite/src/nRF24L01.h:36:21: error: expected identifier before numeric constant
#define CD 0x09
^
/home/builder/Arduino/libraries/arduinoiotcloud_2_0_3/src/cbor/../property/types/automation/CloudTelevision.h:52:3: note: in expansion of macro 'CD'
CD = 9,
^
/mnt/create-efs/webide/1f/e3/1fe3eb2d146971240df892d9f119dcb4:crafter--/libraries_v2/NRFLite/src/nRF24L01.h:36:21: error: expected '}' before numeric constant
#define CD 0x09
^
/home/builder/Arduino/libraries/arduinoiotcloud_2_0_3/src/cbor/../property/types/automation/CloudTelevision.h:52:3: note: in expansion of macro 'CD'
CD = 9,
^
/mnt/create-efs/webide/1f/e3/1fe3eb2d146971240df892d9f119dcb4:crafter--/libraries_v2/NRFLite/src/nRF24L01.h:36:21: error: expected unqualified-id before numeric constant
#define CD 0x09
^
/home/builder/Arduino/libraries/arduinoiotcloud_2_0_3/src/cbor/../property/types/automation/CloudTelevision.h:52:3: note: in expansion of macro 'CD'
CD = 9,
^
In file included from /home/builder/Arduino/libraries/arduinoiotcloud_2_0_3/src/cbor/../property/PropertyContainer.h:51:0,
from /home/builder/Arduino/libraries/arduinoiotcloud_2_0_3/src/cbor/CBORDecoder.h:31,
from /home/builder/Arduino/libraries/arduinoiotcloud_2_0_3/src/ArduinoIoTCloud.h:35,
from /tmp/1579860531/Untitled_jun29a/thingProperties.h:3,
from /tmp/1579860531/Untitled_jun29a/Untitled_jun29a.ino:6:
/home/builder/Arduino/libraries/arduinoiotcloud_2_0_3/src/cbor/../property/types/automation/CloudTelevision.h:104:1: error: expected declaration before '}' token
};
^
I fixed it by changing the CD definition to CD2 and everything works fine now!
Thank you so much for your help!