Open whakru opened 4 years ago
Hi whakru,
are you using the demo code? or did you write custom code?
Same issue on the esp32. Your lib is broke. I complied it on cpp17.
@whakru you can use the build from the commit b758f5e4ca0b0595a9e98fc8d4aa9b98dd70b415. It complies.
C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:36:83: error: default argument given for parameter 3 of 'bool SocketIOClient::connect(char, int, char)' [-fpermissive]
bool SocketIOClient::connect(char thehostname[], int theport, char thequery[] = "") {
In file included from C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:26:0:
C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master/SocketIOClient.h:48:7: error: after previous specification in 'bool SocketIOClient::connect(char, int, char)' [-fpermissive]
bool connect(char hostname[], int port = 80, char query[] = "");
C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:52:85: error: default argument given for parameter 3 of 'bool SocketIOClient::reconnect(char, int, char)' [-fpermissive]
bool SocketIOClient::reconnect(char thehostname[], int theport, char thequery[] = "")
In file included from C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:26:0:
C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master/SocketIOClient.h:52:7: error: after previous specification in 'bool SocketIOClient::reconnect(char, int, char)' [-fpermissive]
bool reconnect(char hostname[], int port = 80, char query[] = "");
C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:172:70: error: default argument given for parameter 2 of 'void SocketIOClient::sendHandshake(char, char)' [-fpermissive]
void SocketIOClient::sendHandshake(char hostname[], char query[] = "") {
In file included from C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:26:0:
C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master/SocketIOClient.h:66:7: error: after previous specification in 'void SocketIOClient::sendHandshake(char, char)' [-fpermissive]
void sendHandshake(char hostname[], char query[] = "");
exit status 1 Ошибка компиляции.