Hello Experts
I've got a little problem with my Arduino code.
I have two .ino files in the same folder (Function file + Normal Loop and Setup file).
Now I'm trying to compile them, but I get a lot of errors.
Can anybody help me?
I added the files in the Zip folder below.
I get following error:
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
C:\Users\roethlisbergerstefan\Desktop\ArduinoWateringSystem\ArduinoWateringSystem.ino: In function 'void loop()':
ArduinoWateringSystem:44: error: 'getWaterBreakeStatus' was not declared in this scope
waterBreakStatus = getWaterBreakeStatus();
^
ArduinoWateringSystem:45: error: 'getLightSensor' was not declared in this scope
lightStatus = getLightSensor();
^
ArduinoWateringSystem:50: error: 'waterSensorValue' was not declared in this scope
waterSensorValue = getSensorValue();
^
ArduinoWateringSystem:50: error: 'getSensorValue' was not declared in this scope
waterSensorValue = getSensorValue();
^
ArduinoWateringSystem:118: error: 'sendAndroidValues' was not declared in this scope
sendAndroidValues();
^
functions:4: error: a function-definition is not allowed here before '{' token
{
^
functions:9: error: a function-definition is not allowed here before '{' token
{
^
functions:62: error: expected '}' at end of input
}
^
exit status 1
'getWaterBreakeStatus' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
ArduinoWateringSystem.zip (22.4 KB)