bekant
bekant copied to clipboard
Compiling error for esp8266
Hallo,
Great project, I'd like to automate my bekent desk with your project. Compiling the code for an Arduino Uno works fine, but compiling it for esp8266 with the webserver results in:
bekant:68:15: error: 'class aREST_UI' has no member named 'buttonCallback'
return rest.buttonCallback(answer);
^
/Users/remco/Code/Arduino/bekant/bekant.ino: In function 'void setup()':
bekant:87:8: error: 'class aREST_UI' has no member named 'buttonFunction'
rest.buttonFunction("Up", &up);
^
bekant:88:8: error: 'class aREST_UI' has no member named 'buttonFunction'
rest.buttonFunction("Down", &down);
^
exit status 1
'class aREST_UI' has no member named 'buttonCallback'
I have aRest library version 2.9.1 and aREST_UI library version 1.1.1 installed.
And idea what i might do wrong?
Gr. Remco
Huh. I don't remember which version of aREST_UI I used for this and I can't find anything about the buttonCalback or buttonFunction in their public docs or git history.
The web UI never worked terribly well to begin with; I mostly built it to prank the other people who shared my office at work. It might be better to scrap most of the web server code and start over.
I'll keep an eye out for the original source code for those libraries and let you know if I find them.
Also take a look at the megadesk project: https://github.com/gcormier/megadesk . I think he has a more complete implementation of the LIN commands and startup sequence for this desk.
Ah; here we are. I completely forgot that I have modified versions of the aREST_UI and aREST libraries that I was using for this project: https://github.com/trainman419/aREST_UI and https://github.com/trainman419/aREST ( I merged my changes to aREST so you just need aREST_UI )
Ok thanks,
I already looked at the code of megadesk, but this is strictly for tinyAT and i am not sure if it will compile on esp8266 or esp32. My goal is to het it up and running with an ESP with MQTT so I can control it from Home Assistant and Google.
Thanks for you work, I will keep you informed on my progression.