-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SparkFunESP8266 shield #6
Comments
could you post the code for both esp8266 and node.js please? |
SparkFunESP8266Client.cpp
arduino.js (node server) ... very simple ... just for test
|
you need to include SocketIOClient.h too at the beginning. I strongly recommend getting a ESP8266 development board. the node code looks good |
My sketch:
|
I just read your code. if (!client.connect(host, port)) { and |
could you try the new example I just uploaded? Hello_time_sparkfun.ino |
does it work? |
No.... The comunication exists but because I do not know C++ a dont know how to modify the function readHandshake() to read the headers corect and return true ... |
I dont have a module like yours so it will be hard for me to implement it. |
atoi(&databuffer[9]) return 0 |
I have a SparkFunESP8266 and I try to user Socket.io to send and receive instant messages.
I-am using #include <SparkFunESP8266WiFi.h> to connect to my wifi network... works fine ...
I use in my setup section the code:
and I receive "Not connected" ...
I open the SocketIOClient.cpp and on the ::connect i see that function ::sendHandshake(hostname); witch works fine and I receive the following answer:
and the socket.io server detects that there is a new connection ...
The problem comes in the next line of the ::connect on ::readHandshake();
... this section of code:
always return false and the program stop working.
I use on my server node -v : 4.2.2 and [email protected]
I do not know c++ to work with SocketIOClient.cpp
Can you help me ?
The text was updated successfully, but these errors were encountered: