Arduino UNO doesn't work with thinger.io, please advise

Hi,
For some time i’m working with the thinger.io cloud using the ESP32 with the W5500 connected via SPI (i can’t use the ESP’s32 WiFi because of RF issues) and the units are working good, i would like to replace the ESP32 with the Arduino UNO using the same W5500 connected via SPI to the UNO, for doing so i built the unit using the UNO and i’m using the code example you provided, to my surprise it is not working and it is giving me endless lines of errors, view below and advise.

Arduino: 1.8.12 (Windows 10), TD: 1.52, Board: "Arduino Uno"
In file included from sketch\ArduinoEthernet.ino.cpp:1:0:
C:\Users\gideon\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2\cores\arduino/Arduino.h:81:18: error: expected identifier before numeric constant

 #define INTERNAL 3

                  ^

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:56:9: note: in expansion of macro 'INTERNAL'

         INTERNAL    = 3

         ^~~~~~~~

C:\Users\gideon\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2\cores\arduino/Arduino.h:81:18: error: expected '}' before numeric constant

 #define INTERNAL 3

                  ^

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:56:9: note: in expansion of macro 'INTERNAL'

         INTERNAL    = 3

         ^~~~~~~~

C:\Users\gideon\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2\cores\arduino/Arduino.h:81:18: error: expected unqualified-id before numeric constant

 #define INTERNAL 3

                  ^

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:56:9: note: in expansion of macro 'INTERNAL'

         INTERNAL    = 3

         ^~~~~~~~

In file included from C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger.h:29:0,

                 from C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/ThingerClient.h:28,

                 from C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/ThingerEthernet.h:29,

                 from C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\examples\Arduino\ArduinoEthernet\ArduinoEthernet.ino:1:

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:65:1: error: expected unqualified-id before 'private'

 private:

 ^~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:87:5: error: 'io_type' does not name a type; did you mean 'decltype'?

     io_type io_type_;

     ^~~~~~~

     decltype

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:88:5: error: 'access_type' does not name a type; did you mean 'message_type'?

     access_type access_type_;

     ^~~~~~~~~~~

     message_type

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:89:5: error: 'callback' does not name a type; did you mean 'calloc'?

     callback callback_;

     ^~~~~~~~

     calloc

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:112:1: error: expected unqualified-id before 'public'

 public:

 ^~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:148:50: error: 'thinger::thinger_resource& thinger::operator[](const char*)' must be a nonstatic member function

     thinger_resource & operator[](const char* res){

                                                  ^

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:152:35: error: declaration of 'operator()' as non-function

     thinger_resource & operator()(access_type type){

                                   ^~~~~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:152:35: error: 'access_type' was not declared in this scope

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:152:35: note: suggested alternative: 'message_type'

     thinger_resource & operator()(access_type type){

                                   ^~~~~~~~~~~

                                   message_type

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:157:5: error: 'io_type' does not name a type; did you mean 'decltype'?

     io_type get_io_type(){

     ^~~~~~~

     decltype

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:161:5: error: 'access_type' does not name a type; did you mean 'message_type'?

     access_type get_access_type(){

     ^~~~~~~~~~~

     message_type

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: In function 'void thinger::fill_api(protoson::pson_object&)':

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:166:12: error: 'io_type_' was not declared in this scope

         if(io_type_!=none){

            ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:166:22: error: 'none' was not declared in this scope

         if(io_type_!=none){

                      ^~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:166:22: note: suggested alternative: 'tone'

         if(io_type_!=none){

                      ^~~~

                      tone

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:167:29: error: 'access_type_' was not declared in this scope

             content["al"] = access_type_;

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

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:174:33: error: 'class thinger::thinger_resource' has no member named 'fill_api'

                 current->value_.fill_api(actions[current->key_]);

                                 ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: In function 'void thinger::fill_api_io(protoson::pson_object&)':

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:181:12: error: 'io_type_' was not declared in this scope

         if(io_type_ == pson_in){

            ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:181:24: error: 'pson_in' was not declared in this scope

         if(io_type_ == pson_in){

                        ^~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:182:13: error: 'callback_' was not declared in this scope

             callback_.pson(content["in"]);

             ^~~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:182:13: note: suggested alternative: 'calloc'

             callback_.pson(content["in"]);

             ^~~~~~~~~

             calloc

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:183:30: error: 'pson_out' was not declared in this scope

         }else if(io_type_ == pson_out){

                              ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:183:30: note: suggested alternative: 'stdout'

         }else if(io_type_ == pson_out){

                              ^~~~~~~~

                              stdout

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:184:13: error: 'callback_' was not declared in this scope

             callback_.pson(content["out"]);

             ^~~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:184:13: note: suggested alternative: 'calloc'

             callback_.pson(content["out"]);

             ^~~~~~~~~

             calloc

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:185:30: error: 'pson_in_pson_out' was not declared in this scope

         }else if(io_type_ == pson_in_pson_out){

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

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:186:13: error: 'callback_' was not declared in this scope

             callback_.pson_in_pson_out(content["in"], content["out"]);

             ^~~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:186:13: note: suggested alternative: 'calloc'

             callback_.pson_in_pson_out(content["in"], content["out"]);

             ^~~~~~~~~

             calloc

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: In function 'void thinger::fill_output(protoson::pson&)':

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:191:12: error: 'io_type_' was not declared in this scope

         if(io_type_ == pson_out){

            ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:191:24: error: 'pson_out' was not declared in this scope

         if(io_type_ == pson_out){

                        ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:191:24: note: suggested alternative: 'stdout'

         if(io_type_ == pson_out){

                        ^~~~~~~~

                        stdout

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:192:13: error: 'callback_' was not declared in this scope

             callback_.pson(content);

             ^~~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:192:13: note: suggested alternative: 'calloc'

             callback_.pson(content);

             ^~~~~~~~~

             calloc

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: At global scope:

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:200:1: error: expected unqualified-id before 'public'

 public:

 ^~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: In function 'void thinger::set_function(void (*)())':

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:282:9: error: 'io_type_' was not declared in this scope

         io_type_ = run;

         ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:282:20: error: 'run' was not declared in this scope

         io_type_ = run;

                    ^~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:283:9: error: 'callback_' was not declared in this scope

         callback_.run = run_function;

         ^~~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:283:9: note: suggested alternative: 'calloc'

         callback_.run = run_function;

         ^~~~~~~~~

         calloc

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: At global scope:

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:289:60: error: 'void thinger::operator<<(void (*)(protoson::pson&))' must have an argument of class or enumerated type

     void operator<<(void (*in_function)(protoson::pson& in)){

                                                            ^

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: In function 'void thinger::set_input(void (*)(protoson::pson&))':

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:298:9: error: 'io_type_' was not declared in this scope

         io_type_ = pson_in;

         ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:298:20: error: 'pson_in' was not declared in this scope

         io_type_ = pson_in;

                    ^~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:299:9: error: 'callback_' was not declared in this scope

         callback_.pson = in_function;

         ^~~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:299:9: note: suggested alternative: 'calloc'

         callback_.pson = in_function;

         ^~~~~~~~~

         calloc

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: At global scope:

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:305:62: error: 'void thinger::operator>>(void (*)(protoson::pson&))' must have an argument of class or enumerated type

     void operator>>(void (*out_function)(protoson::pson& out)){

                                                              ^

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: In function 'void thinger::set_output(void (*)(protoson::pson&))':

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:314:9: error: 'io_type_' was not declared in this scope

         io_type_ = pson_out;

         ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:314:20: error: 'pson_out' was not declared in this scope

         io_type_ = pson_out;

                    ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:314:20: note: suggested alternative: 'stdout'

         io_type_ = pson_out;

                    ^~~~~~~~

                    stdout

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:315:9: error: 'callback_' was not declared in this scope

         callback_.pson = out_function;

         ^~~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:315:9: note: suggested alternative: 'calloc'

         callback_.pson = out_function;

         ^~~~~~~~~

         calloc

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: At global scope:

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:321:94: error: 'void thinger::operator=(void (*)(protoson::pson&, protoson::pson&))' must be a nonstatic member function

     void operator=(void (*pson_in_pson_out_function)(protoson::pson& in, protoson::pson& out)){

                                                                                              ^

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: In function 'void thinger::set_input_output(void (*)(protoson::pson&, protoson::pson&))':

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:330:9: error: 'io_type_' was not declared in this scope

         io_type_ = pson_in_pson_out;

         ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:330:20: error: 'pson_in_pson_out' was not declared in this scope

         io_type_ = pson_in_pson_out;

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

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:330:20: note: suggested alternative: 'pson_in_pson_out_function'

         io_type_ = pson_in_pson_out;

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

                    pson_in_pson_out_function

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:331:9: error: 'callback_' was not declared in this scope

         callback_.pson_in_pson_out = pson_in_pson_out_function;

         ^~~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:331:9: note: suggested alternative: 'calloc'

         callback_.pson_in_pson_out = pson_in_pson_out_function;

         ^~~~~~~~~

         calloc

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: In function 'void thinger::handle_request(thinger::thinger_message&, thinger::thinger_message&)':

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:343:25: error: 'io_type_' was not declared in this scope

                 switch (io_type_){

                         ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:344:26: error: 'pson_in' was not declared in this scope

                     case pson_in:

                          ^~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:345:25: error: 'callback_' was not declared in this scope

                         callback_.pson(request);

                         ^~~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:345:25: note: suggested alternative: 'calloc'

                         callback_.pson(request);

                         ^~~~~~~~~

                         calloc

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:347:26: error: 'pson_out' was not declared in this scope

                     case pson_out:

                          ^~~~~~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:347:26: note: suggested alternative: 'stdout'

                     case pson_out:

                          ^~~~~~~~

                          stdout

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:350:26: error: 'run' was not declared in this scope

                     case run:

                          ^~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:353:26: error: 'pson_in_pson_out' was not declared in this scope

                     case pson_in_pson_out:

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

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:356:26: error: 'none' was not declared in this scope

                     case none:

                          ^~~~

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:356:26: note: suggested alternative: 'tone'

                     case none:

                          ^~~~

                          tone

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp: At global scope:

C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\thinger.io\src/thinger/thinger_resource.hpp:374:1: error: expected declaration before '}' token

 }

 ^

Multiple libraries were found for "Ethernet.h"
 Used: C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\Ethernet
 Not used: D:\Arduino\libraries\Ethernet
 Not used: C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\arduino_605820
 Not used: C:\Users\gideon\Dropbox\Arduino\GH_Projects\libraries\arduino_985543
exit status 1
Error compiling for board Arduino Uno.

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