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

verification problem #13

Open
Slayforfun opened this issue Oct 1, 2020 · 2 comments
Open

verification problem #13

Slayforfun opened this issue Oct 1, 2020 · 2 comments

Comments

@Slayforfun
Copy link

I tried to verify the code before uploading it to my NodeMCU and got the following error message. Has anyone else experienced it?
I am not very familiar with writing code for arduino yet though i intend to learn, so if you have any solutions or even hints for figuring this out im all ears!

Arduino: 1.8.13 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"





















C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void callback(char*, byte*, unsigned int)':

sunrise_test:171:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout(wakeDelay, increaseSunPhase);

           ^

sunrise_test:172:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout(wakeDelay, increaseWhiteLevel);

           ^

sunrise_test:173:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseFadeStep);

           ^

sunrise_test:174:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseSunFadeStep);

           ^

C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void increaseSunPhase()':

sunrise_test:234:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout(wakeDelay, increaseSunPhase);

           ^

sunrise_test:237:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseFadeStep);

           ^

sunrise_test:238:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseSunFadeStep);

           ^

C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void increaseSunFadeStep()':

sunrise_test:247:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseSunFadeStep);

           ^

C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void increaseFadeStep()':

sunrise_test:256:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay/80), increaseFadeStep);

           ^

C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void increaseWhiteLevel()':

sunrise_test:265:11: error: 'class SimpleTimer' has no member named 'setTimeout'

     timer.setTimeout((wakeDelay, increaseWhiteLevel);

           ^

sunrise_test:265:53: error: expected ')' before ';' token

     timer.setTimeout((wakeDelay, increaseWhiteLevel);

                                                     ^

C:\Users\Carsten\Desktop\sunrise_test\sunrise_test.ino: In function 'void loop()':

sunrise_test:397:9: error: 'class SimpleTimer' has no member named 'run'

   timer.run();

         ^

Multiple libraries were found for "SimpleTimer.h"

 Used: C:\Users\Carsten\Documents\Arduino\libraries\SimpleTimer

 Not used: C:\Program Files (x86)\Arduino\libraries\SimpleTimer

exit status 1

'class SimpleTimer' has no member named 'setTimeout'



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
@freddieleeman
Copy link
Contributor

You've got the wrong SimpleTimer.h. Make sure you install and use https://github.com/thehookup/Simple-Timer-Library

@Slayforfun
Copy link
Author

you were right good sir, updated arduino IDE recently had multiple versions for a short time and ended up adding the right SimpleTimer in the wrong folder. Naturally it will not work properly that way. Thank you very much for your fast reply!

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

2 participants