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

Cannot get the ESP code to compile #10

Open
jaysuk opened this issue Mar 9, 2017 · 6 comments
Open

Cannot get the ESP code to compile #10

jaysuk opened this issue Mar 9, 2017 · 6 comments

Comments

@jaysuk
Copy link

jaysuk commented Mar 9, 2017

Using the arduino IDE on windows 10.
Have all the dependencies included in the arduino library.
This is the error I get

C:\Users\live\Downloads\sonoffsc-master\esp8266\sonoffsc\src\sonoffsc\button.ino: In function 'void buttonLoop()':

button:25: error: 'class DebounceEvent' has no member named 'getEvent'
uint8_t event = _button.getEvent();
^
button:27: error: 'EVENT_DOUBLE_CLICK' was not declared in this scope
if (event == EVENT_DOUBLE_CLICK) createAP();
^
button:28: error: 'EVENT_LONG_CLICK' was not declared in this scope
if (event == EVENT_LONG_CLICK) ESP.reset();
^
exit status 1
'class DebounceEvent' has no member named 'getEvent'

Any ideas?

@juancreyes
Copy link

Hi,

I am facing same error trying to verify esp8086 set files. I am afraid of button.ino code turned into bug because the Debounce library removed and changed some classes at Jan 25th and likely it misses the proper changes along of button.

[2.0.0] 2017-01-25
Changed:

  • Reporting # of clicks and length instead of predefined events

  • Callback signature changed to report click count and length
    Removed:

  • EVENT_SINGLE_CLICK, EVENT_DOUBLE_CLICK, EVENT_LONG_CLICK

    I would wait for Xoje to take a look and propose the fix. @xoseperez do you agree with this bug ?.

Regards
Juan

@jaysuk
Copy link
Author

jaysuk commented Mar 12, 2017

I managed to compile it with the older debounce library.
It now creates an access point that I can connect to but once I log in with the correct credentials, i get an error 404 and cannot go any further to configure the sonoff sc

@juancreyes
Copy link

I dont know what can cause 404 error. Each time you press external Button, do you call AP creation, createAP() ? Does the SSID sonoff_endMAC appear on your wifi list and you can authenticate to AP successfully ?

@jaysuk
Copy link
Author

jaysuk commented Mar 14, 2017 via email

@xoseperez
Copy link
Owner

Sorry I did not get any notifications on this issue on my email...
@jaysuk you are right, compiling against DebounceEvent 1.1 is the way to go, the code is still not compatible with new 2.0 version.
@jaysuk Probably you did not flash the filesystem image, so there are no contents to serve. You can check how to do it in the ESPurna repo (same procedure) here: https://bitbucket.org/xoseperez/espurna/wiki/Filesystem.deprecated.md

@DasBasti
Copy link

#12 will fix the issue with DebounceEvent

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

4 participants