Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<SPI.h>
- #include<Ethernet.h>
- byte mac[]={0xAA, 0xAB, 0xAC,0xAD, 0xAE, 0xAF};
- IPAddress ip(192, 168, 1, 86);
- EthernetClient client;
- byte server[]={192, 168, 1, 61};
- void setup()
- {
- Serial.begin(9600);
- delay(1000);
- Ethernet.begin(mac, ip);
- }
- void loop()
- {
- if(client.connect(server, 80))
- {
- client.println("GET /ardunio/ardComm.php?param=ping");
- client.println();
- client.stop();
- }
- Serial.println(millis);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement