juanmcasillas / CatFeeder-Slot

A 3D printable, fully programmable, automatic pet feeder with WWW interface support using ESP8266 (Slot Version)
GNU General Public License v3.0
4 stars 0 forks source link

Error on compile #2

Open jota-f opened 3 years ago

jota-f commented 3 years ago

Helo! I get de error bellow

`Arduino: 1.8.12 (Windows 10), Placa:"WeMos D1 R2 & mini, 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

sketch\catfeeder.cpp: In member function 'String CatFeederClass::Calibrate(AsyncWebServerRequest*)':

catfeeder.cpp:138:74: error: 'schedule_function' was not declared in this scope

 schedule_function(std::bind(MotorStepperClass::Move, mult, s, _motor));

                                                                      ^

sketch\catfeeder.cpp: In member function 'void CatFeederClass::_motor_moveto(int, int)':

catfeeder.cpp:576:77: error: 'schedule_function' was not declared in this scope

 schedule_function(std::bind(MotorStepperClass::Move, dir, steps, _motor));

                                                                         ^

Foram encontradas múltiplas bibliotecas para "Servo.h" Usado: C:\Users\snipe\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Servo Não usado: C:\Program Files (x86)\Arduino\libraries\Servo Foram encontradas múltiplas bibliotecas para "ArduinoJson.h" Usado: C:\Users\snipe\Documents\Arduino\libraries\ArduinoJson Não usado: C:\Users\snipe\Documents\Arduino\libraries\arduino_406825 exit status 1 'schedule_function' was not declared in this scope `

juanmcasillas commented 3 years ago

Hello,

I try to compile it with 1.8.11

Used: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/Servo Not used: /Applications/Arduino.app/Contents/Java/libraries/Servo Using library ESP8266WiFi at version 1.0 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266WiFi Using library Time at version 1.5 in folder: /Archive/Src/Arduino/libraries/Time Using library NtpClient at version 2.5.1 in folder: /Archive/Src/Arduino/libraries/NtpClient Using library ESPAsyncTCP at version 1.2.0 in folder: /Archive/Src/Arduino/libraries/ESPAsyncTCP Using library ESPAsyncWebServer at version 1.2.3 in folder: /Archive/Src/Arduino/libraries/ESPAsyncWebServer Using library Hash at version 1.0 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/Hash Using library ESP8266mDNS at version 1.2 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266mDNS Using library Ticker at version 1.0 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/Ticker Using library ArduinoOTA at version 1.0 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/ArduinoOTA Using library ArduinoJson at version 6.11.3 in folder: /Archive/Src/Arduino/libraries/ArduinoJson Using library FSBrowserNG at version 1.0.0 in folder: /Archive/Src/Arduino/libraries/FSBrowserNG Using library Servo at version 1.0.2 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/Servo /Users/assman/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-size -A /var/folders/cc/0xwh_8tn7xdf8834vtcvvlt00000gn/T/arduino_build_213962/catfeedercircular.ino.elf Sketch uses 425324 bytes (40%) of program storage space. Maximum is 1044464 bytes. Global variables use 37408 bytes (45%) of dynamic memory, leaving 44512 bytes for local variables. Maximum is 81920 bytes.

It works.

my board version: esp32 1.0.2

Also, I test with the latest arduino IDE (1.8.13) and it works, too. Check your ESP32 Library.

Using library ESP8266WiFi at version 1.0 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266WiFi Using library Time at version 1.5 in folder: /Archive/Src/Arduino/libraries/Time Using library NtpClient at version 2.5.1 in folder: /Archive/Src/Arduino/libraries/NtpClient Using library ESPAsyncTCP at version 1.2.0 in folder: /Archive/Src/Arduino/libraries/ESPAsyncTCP Using library ESPAsyncWebServer at version 1.2.3 in folder: /Archive/Src/Arduino/libraries/ESPAsyncWebServer Using library Hash at version 1.0 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/Hash Using library ESP8266mDNS at version 1.2 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266mDNS Using library Ticker at version 1.0 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/Ticker Using library ArduinoOTA at version 1.0 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/ArduinoOTA Using library ArduinoJson at version 6.11.3 in folder: /Archive/Src/Arduino/libraries/ArduinoJson Using library FSBrowserNG at version 1.0.0 in folder: /Archive/Src/Arduino/libraries/FSBrowserNG Using library Servo at version 1.0.2 in folder: /Users/assman/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/Servo /Users/assman/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-size -A /var/folders/cc/0xwh_8tn7xdf8834vtcvvlt00000gn/T/arduino_build_971435/catfeedercircular.ino.elf Sketch uses 425324 bytes (40%) of program storage space. Maximum is 1044464 bytes. Global variables use 37408 bytes (45%) of dynamic memory, leaving 44512 bytes for local variables. Maximum is 81920 bytes.

Use the repo from here: https://github.com/juanmcasillas/CatFeeder-Slot.git https://github.com/juanmcasillas/CatFeeder-Slot.git

If you need more support, please tell me.

Kind Regards,

Juan M. Casillas

El 12 nov 2020, a las 0:03, jota-f notifications@github.com escribió:

Helo! I get de error bellow

Arduino: 1.8.12 (Windows 10), Placa:"WeMos D1 R2 & mini, 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

sketch\catfeeder.cpp: In member function 'String CatFeederClass::Calibrate(AsyncWebServerRequest*)':

catfeeder.cpp:138:74: error: 'schedule_function' was not declared in this scope

schedule_function(std::bind(MotorStepperClass::Move, mult, s, _motor));

                                                                  ^

sketch\catfeeder.cpp: In member function 'void CatFeederClass::_motor_moveto(int, int)':

catfeeder.cpp:576:77: error: 'schedule_function' was not declared in this scope

schedule_function(std::bind(MotorStepperClass::Move, dir, steps, _motor));

                                                                     ^

Foram encontradas múltiplas bibliotecas para "Servo.h" Usado: C:\Users\snipe\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\Servo Não usado: C:\Program Files (x86)\Arduino\libraries\Servo Foram encontradas múltiplas bibliotecas para "ArduinoJson.h" Usado: C:\Users\snipe\Documents\Arduino\libraries\ArduinoJson Não usado: C:\Users\snipe\Documents\Arduino\libraries\arduino_406825 exit status 1 'schedule_function' was not declared in this scope

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/juanmcasillas/CatFeeder-Slot/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5G4WS5XZXREEM63HI36GLSPMJ27ANCNFSM4TSR7EAA.

jota-f commented 3 years ago

Updated the ide to 1.8.13 esp32 library for 1.0.2 and esp8266 for 2.7.4 and now it works! Thank you. One more question: is it possible to change the webserver port? so that I can route on my router and not be without internet access in the whole house?

juanmcasillas commented 3 years ago

Hello !

Glad to read good news! :-)

is it possible to change the webserver port? so that I can route on my router and not be without internet access in the whole house?

For sure, but you have to edit the FSWebServerLib.cpp file (in FSBrowserNG library). (FSBrowserNG/src/FSWebServerLib.cpp)

Look for this AsyncFSWebServer ESPHTTPServer(80); and change 80 to your port.

Kind Regards,

Juan M. Casillas

El 13 nov 2020, a las 13:08, jota-f notifications@github.com escribió:

Updated the ide to 1.8.13 esp32 library for 1.0.2 and esp8266 for 2.7.4 and now it works! Thank you. One more question:is it possible to change the webserver port? so that I can route on my router and not be without internet access in the whole house?

You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/juanmcasillas/CatFeeder-Slot/issues/2#issuecomment-726729599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5G4WRF7III2B3O5LEK5SLSPUOUNANCNFSM4TSR7EAA.