Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: 'handleTheme' was not declared in this scope handleTheme(); #6

Open
e-music opened this issue Mar 7, 2019 · 1 comment
Open

Comments

@e-music
Copy link

e-music commented Mar 7, 2019

Hello,

I'm trying to compile this using PlatformIO for ESP8266 Arduino core. I have added all lib deps but still getting the following erros:

src\main.cpp: In function 'void handleRoot()': src\main.cpp:163:17: error: 'handleTheme' was not declared in this scope handleTheme(); ^ src\main.cpp:165:14: error: 'handleD5' was not declared in this scope handleD5(); ^ src\main.cpp:167:14: error: 'handleD6' was not declared in this scope handleD6(); ^ src\main.cpp:169:14: error: 'handleD7' was not declared in this scope handleD7(); ^ src\main.cpp:171:14: error: 'handleD8' was not declared in this scope handleD8(); ^ src\main.cpp: In function 'void handleD5()': src\main.cpp:185:32: error: 'updateGPIO' was not declared in this scope updateGPIO(0,server.arg("D5")); ^ src\main.cpp: In function 'void handleD6()': src\main.cpp:190:32: error: 'updateGPIO' was not declared in this scope updateGPIO(1,server.arg("D6")); ^ src\main.cpp: In function 'void handleD7()': src\main.cpp:195:32: error: 'updateGPIO' was not declared in this scope updateGPIO(2,server.arg("D7")); ^ src\main.cpp: In function 'void handleD8()': src\main.cpp:200:32: error: 'updateGPIO' was not declared in this scope updateGPIO(3,server.arg("D8"));

Where most of these functions are declared?

@e-music
Copy link
Author

e-music commented Mar 7, 2019

Sorry, I just figured it out. Everything is declared within the same scope!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant