                         buf[i] = tmp.charAt(i);
                     buf[tmp.length()-1] = '\0';
                     board_id = buf;
-                    req = board_id;
-                }
-                else if(s.startsWith("BRDIPAD")){  // BOARD IP ADDRESS
-                    board_ip = strIp2byteVect(s.substring(7));
-                }
+                }
+//                else if(s.startsWith("BRDIPAD")){  // BOARD IP ADDRESS
+//                    board_ip = strIp2byteVect(s.substring(7));
+//                }
 //                else if(s.startsWith("BRDPORT")){  // BOARD PORT 
 //                    board_port = s.substring(7).toInt();
 //                }

    client.println("\",\"port\":\"80\"} HTTP/1.0");
}

String getInfoFromSD(boolean check_for_elements){
    boolean first_element = true;
    boolean ignore = false;
    String req;
    
    // see if the card is present and can be initialized:
    if (!sd_ready && !SD.begin(chipSelect)) {
        Serial.println("Card failed, or not present");
        // don't do anything more:
        return "";
    }
    else{
        Serial.println("card initialized.");

        elements[id_ele]->lastConnectionTime = millis();
    }
    elements[id_ele]->lastValue = val;
}

void setup(){
    Serial.begin(9600);
    
    getInfoFromSD(false);
    
    /*
    if(board_ip != NULL)
        Ethernet.begin(mac, board_ip);
    else
        Ethernet.begin(mac, BOARD_IP);
    */
    
    Serial.println("Trying to get an IP address using DHCP");
    if (Ethernet.begin(mac) == 0) {
        Serial.println("Failed to configure Ethernet using DHCP");
        
        // initialize the ethernet device not using DHCP:
        if(board_ip != NULL)
            Ethernet.begin(mac, board_ip);
        else
            Ethernet.begin(mac, BOARD_IP);
    }
    
    Serial.print("My IP address: ");
    Serial.println(Ethernet.localIP());
}

void loop(){
