jeelabs / el-client

Arduino client for esp-link's REST, MQTT, and command interface
BSD 2-Clause "Simplified" License
85 stars 47 forks source link

ELClientSocket.cpp compilation error #22

Closed krel78 closed 8 years ago

krel78 commented 8 years ago

Hi! Your project looks very interesting. I have cloned el-client library and trying to compile some of the provided examples (namely mqtt and rest). All the time I get the same error:

/home/leszek/Arduino/libraries/ELClient/ELClientSocket.cpp: In member function 'void ELClientSocket::socketCallback(void*)':
/home/leszek/Arduino/libraries/ELClient/ELClientSocket.cpp:70:25: error: invalid conversion from 'char**' to 'void**' [-fpermissive]
   resp->popArgPtr(&_data);
                         ^
In file included from /home/leszek/Arduino/libraries/ELClient/ELClient.h:11:0,
                 from /home/leszek/Arduino/libraries/ELClient/ELClientSocket.h:15,
                 from /home/leszek/Arduino/libraries/ELClient/ELClientSocket.cpp:10:
/home/leszek/Arduino/libraries/ELClient/ELClientResponse.h:41:13: error:   initializing argument 1 of 'int16_t ELClientResponse::popArgPtr(void**)' [-fpermissive]
     int16_t popArgPtr(void **data); 

Is there something wrong with the code, or is it me doing something wrong?

krel78 commented 8 years ago

Perhaps the problem is with compiler. I used Arduino IDE 1.7.11 from arduino.org (I am using Arduino UNO WiFi board for experiments). Now I downloaded Arduino IDE 1.6.12 from arduino.cc and the examples compile without errors. Sorry for bothering you. :)