Enc28j60 don't work

Arduino:1.8.13 (Windows 10), Płytka:“Arduino Uno”

In file included from C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerENC28J60.h:29:0,

             from C:\Users\FRANCI~1\AppData\Local\Temp\arduino_modified_sketch_390207\ArduinoENC28J60.ino:4:

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:540:34: error: ‘std::function’ has not been declared

 void set_state_listener(std::function<void(THINGER_STATE)> state_listener){

                              ^~~~~~~~

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:540:42: error: expected ‘,’ or ‘…’ before ‘<’ token

 void set_state_listener(std::function<void(THINGER_STATE)> state_listener){

                                      ^

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:557:10: error: ‘function’ in namespace ‘std’ does not name a template type

 std::function<void(THINGER_STATE)> state_listener_;

      ^~~~~~~~

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h: In member function ‘virtual void ThingerClient::run_reboot()’:

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:361:20: error: ‘WDTO_15MS’ was not declared in this scope

     wdt_enable(WDTO_15MS);

                ^~~~~~~~~

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:361:9: error: ‘wdt_enable’ was not declared in this scope

     wdt_enable(WDTO_15MS);

     ^~~~~~~~~~

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:361:9: note: suggested alternative: ‘mutable’

     wdt_enable(WDTO_15MS);

     ^~~~~~~~~~

     mutable

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h: In member function ‘virtual void ThingerClient::thinger_state_listener(ThingerClient::THINGER_STATE)’:

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:425:12: error: ‘state_listener_’ was not declared in this scope

     if(state_listener_) state_listener_(state);

        ^~~~~~~~~~~~~~~

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:425:12: note: suggested alternative: ‘set_state_listener’

     if(state_listener_) state_listener_(state);

        ^~~~~~~~~~~~~~~

        set_state_listener

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h: In member function ‘void ThingerClient::set_state_listener(int)’:

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:541:9: error: ‘state_listener_’ was not declared in this scope

     state_listener_ = state_listener;

     ^~~~~~~~~~~~~~~

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:541:9: note: suggested alternative: ‘set_state_listener’

     state_listener_ = state_listener;

     ^~~~~~~~~~~~~~~

     set_state_listener

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:541:27: error: ‘state_listener’ was not declared in this scope

     state_listener_ = state_listener;

                       ^~~~~~~~~~~~~~

C:\Users\Franciszek\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:541:27: note: suggested alternative: ‘set_state_listener’

     state_listener_ = state_listener;

                       ^~~~~~~~~~~~~~

                       set_state_listener

exit status 1

Błąd kompilacji dla płytki Arduino Uno.

i have this error when i compile

Hi,

Please post code in the right way to make it easy to read.

You can downgrade the thinger’s library to version 2.0.17 to use that board, lastest updates has been related mostly to OTA functionality, the board you are using does not support that, you can downgrade it meanwhile they release the patch.

Hope this helps.