Open futechiot opened 5 years ago
Can you try running the server without the credentials?
@bo01ean yes, i have a credential but i can't simply give you the host IP of our server dude! moreover, i have another esp8266 library for the socket.io, it works fine,
but i want to send data on our socket.io server using ESP32.
Hello There,
i have a socket.io server running, and its working fine with esp8266 using another library.
using your library i'm not able to connect to our socket.io server for ESP8266 AND ESP32. this examples only work for for your server code(APP.JS)??
i have server code as follow:
while i'm using hello_time ESP32 i'm getting these warnings: and for ESP8266 this codes are not working for our server code `C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp: In member function 'void SocketIOClient::send(String, String, String)': C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:401:29: warning: right shift count >= width of type [-Wshift-count-overflow] header[2] = (msglength >> 56) & 255; ^ C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:403:29: warning: right shift count >= width of type [-Wshift-count-overflow] header[3] = (msglength >> 48) & 255; ^ C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:405:29: warning: right shift count >= width of type [-Wshift-count-overflow] header[4] = (msglength >> 40) & 255; ^ C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:407:29: warning: right shift count >= width of type [-Wshift-count-overflow] header[5] = (msglength >> 32) & 255; ^ C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp: In member function 'void SocketIOClient::sendJSON(String, String)':
C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:459:29: warning: right shift count >= width of type [-Wshift-count-overflow] header[2] = (msglength >> 56) & 255; ^ C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:461:29: warning: right shift count >= width of type [-Wshift-count-overflow] header[3] = (msglength >> 48) & 255; ^ C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:463:29: warning: right shift count >= width of type [-Wshift-count-overflow] header[4] = (msglength >> 40) & 255; ^ C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:465:29: warning: right shift count >= width of type [-Wshift-count-overflow] header[5] = (msglength >> 32) & 255; ^ C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp: In member function 'bool SocketIOClient::monitor()':
C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:163:1: error: control reaches end of non-void function [-Werror=return-type]
} ^ C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp: In member function 'void SocketIOClient::send(String, String, String)':
C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:404:15: error: 'header[4]' may be used uninitialized in this function [-Werror=maybe-uninitialized] client.print((char)header[4]); ^ C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp: In member function 'void SocketIOClient::sendJSON(String, String)':
C:\Users\Arana\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:462:15: error: 'header[4]' may be used uninitialized in this function [-Werror=maybe-uninitialized] client.print((char)header[4]); ^ cc1plus.exe: some warnings being treated as errors ` kindly fix this, thank you