hello everyone, lately I've been learning about Arduino and Ethernet Shield...
and I'm new to this...
I currently have an Arduino that can receive and send data to a computer via an interface I created with Delphi
Delphi as a client
Arduino as server
but when I send a few characters of text to the Arduino via the Delphi client socket...
Arduino only accepts 1 character...
ex: I sent "QWERTY"
Arduino receives: "Q"
How can the Arduino receive a message in full, for example 8 characters...
Please help
Here's the code to capture messages on Arduino:
if (client.available() > 0)
{
str = client.read();
if(str=='1')
{ digitalWrite(relay1, relayON);
}
}
on delphi
ClientSocket1.Socket.SendText('qwerty');