c++ - No matching function for call to SocketIOClient::SocketIOClient() -
i'm trying maintain communication between node js server , arduino using socketio, tried test example (arduinochat) https://github.com/quentinpigne/socket.io-arduino-client , error:
arduinochat.ino:6:16: error: no matching function call ‘socketioclient::socketioclient()’ arduinochat.ino:6:16: note: candidates are: in file included arduinochat.ino:4:0: /home/nourhene/sketchbook/libraries/socketioclient/socketioclient.h:52:3: note: socketioclient::socketioclient(client&) socketioclient(client& client); ^ /home/nourhene/sketchbook/libraries/socketioclient/socketioclient.h:52:3: note: candidate expects 1 argument, 0 provided /home/nourhene/sketchbook/libraries/socketioclient/socketioclient.h:50:7: note: socketioclient::socketioclient(const socketioclient&) class socketioclient { ^ /home/nourhene/sketchbook/libraries/socketioclient/socketioclient.h:50:7: note: candidate expects 1 argument, 0 provided arduinochat.ino: in function ‘void setup()’: arduinochat.ino:30:55: error: invalid conversion ‘void (*)(ethernetclient, char*)’ ‘void (*)(client&, arduinojson::jsonarray&)’ [-fpermissive] in file included arduinochat.ino:4:0: /home/nourhene/sketchbook/libraries/socketioclient/socketioclient.h:56:8: note: initializing argument 2 of ‘void socketioclient::seteventhandler(char*, void (*)(client&, arduinojson::jsonarray&))’ void seteventhandler(char* eventname, void (*handler)(client& client, jsonarray& data)); ^ arduinochat.ino : 6 : 16 =>
socketioclient client; socketioclient.h:52:3: =>
class socketioclient { public: socketioclient(client& client);
Comments
Post a Comment