I keep getting this error https://www.circuito.io/app?components=512,11021,13959,3061987
Hey, we can’t see the error you’re seeing, can you send a screenshot or describe the problem you’re seeing?
Thanks,
Anat
HI, This is the error. Relay’ does not name a type
Thanks
Chuck
HI, the code seems to have a problem with “relayModule” I just dont know how to fix it.
thanks, Chuck
Hi,
I think you need to install library for relay.
I had relay.h & cpp so I installed relayModule and the error I get now is C:\Users\Owner\Documents\Arduino\libraries\arduino_611227\src/Relay.h:8:7: note: candidate: constexpr Relay::Relay(Relay&&)
C:\Users\Owner\Documents\Arduino\libraries\arduino_611227\src/Relay.h:8:7: note: no known conversion for argument 1 from ‘int’ to ‘Relay&&’
C:\Users\Owner\AppData\Local\Temp\Temp1_Firmware(12).zip\Firmware\Firmware.ino: In function ‘void loop()’:
Firmware:62:17: error: ‘class Relay’ has no member named ‘on’
relayModule.on(); // 1. turns on
^
Firmware:64:17: error: ‘class Relay’ has no member named ‘off’
relayModule.off(); // 3. turns off.
^
Multiple libraries were found for “Relay.h”
Used: C:\Users\Owner\Documents\Arduino\libraries\arduino_611227
Not used: C:\Users\Owner\Documents\Arduino\libraries\Easyuino
Not used: C:\Users\Owner\Documents\Arduino\libraries\Easyuino
Not used: C:\Users\Owner\Documents\Arduino\libraries\Easyuino
Not used: C:\Users\Owner\Documents\Arduino\libraries\Easyuino
Using library RelayModule at version 1.1.1 in folder: C:\Users\Owner\Documents\Arduino\libraries\RelayModule
Using library NewPing at version 1.9.1 in folder: C:\Users\Owner\Documents\Arduino\libraries\NewPing
Using library arduino_611227 at version 1.0.0 in folder: C:\Users\Owner\Documents\Arduino\libraries\arduino_611227
exit status 1
no matching function for call to ‘Relay::Relay(int)’
fixed it. Thanks for the help
Hey Tuner2, do you mind sharing with us what the problem was and how you fixed it?
Thanks,
Anat