Hello John & Peter
Thank you for your comments!
I'm already a step further.
But I have still a problem with the programming code.
This was the testing code
void loop()
{
if (digitalRead(22) && digitalRead(23))
sendPacket("g1");
if (digitalRead(24) && digitalRead(25))
sendPacket("g2");
}
void sendPacket(char *contents)
{
Udp.beginPacket(192.168.1.1, 8080);
Udp.write(contents);
Udp.endPacket();
}
The software give the errors you can see below:
"As of Arduino 1.0, the Udp class in the Ethernet library has been renamed to EthernetClient."
"sketch_aug30a.cpp:15:21: error: too many decimal points in number"
"sketch_aug30a.cpp: In function 'void sendPacket(char*)':"
"sketch_aug30a:11: error: 'Udp' was not declared in this scope"
I don't know what the problem is, maybe you can help me.
Thanks
Leon