I have not tried the w5500 yet
I might order one at some point
most of the code should work though without any modification.
probably some changes in the ethernet library
I will investigate
meanwhile, you can try editing the lib
according to Arduino - Home
NB. You can reuse your code written for Arduino Ethernet Shield, simply replacing #include <Ethernet.h> --> #include <Ethernet2.h> #include <EthernetUdp.h> --> #include <EthernetUdp2.h>
Sorry to bump an older post, but I have jumped into the world of websockets without a clue of what I am doing (the more I learn, the more I realize what I don't know). This is the only library that I've found that deals with socket.io after version 1.0, and the only one where I've gotten the example to actually work!
What I am working on currently will send and receive JSON data through a socket.io server on a computer that will in turn be sending and receiving data from another "black box" (doesn't really matter, which is the whole point of websockets).
I'm using an Adafruit capacitive touch sensor and some LEDs to indicate what has been touched at my end, sending that data and receiving data to also control the LEDs from the other end. This was originally done using the serial port to talk to the black box, but it ended up with considerable distance and the USB extender we used seems to have issues with being used for a serial port (drops the connection after a while - end up having to reboot both ends to get it working again). Websockets was the solution the programmer of the black box wanted, so here I am trying to catch up.
TLDR: I still don't know what I don't know. Would anyone who has used this library care to share some of their code so I can learn from the examples?
I am using BH-MSD-2A driver with BH42SH38-1684 LA-TR 8X8 BIPOLAR stepper motor so how should I calibrate it with my arduino board to operate it with potentiometer of 1 M ohm and also to operate it for fixed rotation for clock wise and anti clockwise direction.
As it been discussed on github, there is a bug, and the connection is lost after 3', does anyone succeeded in maintaining the connection during a long time ?
Hi, let me ask one question I did not find anywhere.
How can be get msg from the server?, I check the doc, but, as I said, not find any command to do that.
Thanks,
there are 3 variables :
extern String RID;
extern String Rname;
extern String Rcontent;
in the void loop()
{
unsigned long currentMillis = millis();
if(currentMillis - previousMillis > interval)
{
previousMillis = currentMillis; //client.heartbeat(0);
client.send("atime", "message", "Time please?");
}
if (client.monitor())
{
Serial.println(RID);
if (RID == "atime" && Rname == "time") // this is how you get the data
{
Serial.print("Time is ");
Serial.println(Rcontent);
}
}
}