 void setup() {
   // start the serial library:
   Serial.begin(9600);
-  // start the Ethernet connection:
-  if (Ethernet.begin(mac) == 0) {
+    
+  pinMode(ledPin, OUTPUT);
+  pinMode(buttonPin, INPUT);
+  
+//  // start the Ethernet connection:
+  int errEthernet = Ethernet.begin(mac);
+  if (errEthernet == 0) {
     Serial.println("Failed to configure Ethernet using DHCP");
+    Serial.println(errEthernet);
     // no point in carrying on, so do nothing forevermore:
-    for(;;)
-      ;
+    while(true) {
+       digitalWrite(ledPin, LOW);
+       delay(1000);
+       digitalWrite(ledPin, HIGH);
+       delay(1000);
+    }
   }
   Udp.begin(server_port);
   dnsClient.begin(Ethernet.dnsServerIP());


void send_message() {
    IPAddress server_ip(107, 21, 122, 218);
    int result = dnsClient.getHostByName(server_host, server_ip);
    Serial.println("Server IP");
    Serial.println(server_ip);

  0x90, 0xA2, 0xDA, 0x0D, 0xCC, 0x2D
};

const int speakerPin = 6;
const int buttonPin = 5;
const int ledPin = 8;
const int debounceDelay = 100;

const char server_host[] = "ournewballandchain.com";
unsigned int server_port = 8008;
