   radio.openReadingPipe(1, pipes[0]);
 }
 
-void sendDataEthernet(int valor) {
-  // if you get a connection, report back via serial:
+void sendDataEthernet(int valor, int valor2) {
+  // close any connection before send a new request.
+  // This will free the socket on the WiFi shield
+  client.stop();
   if (client.connect(server, 8085)) {
     Serial.println("Connected");
     // Make a HTTP request:
     client.println("GET "
                    "/parking-change"
-                   "?id=" + String(valor) + "&st=0 HTTP/1.1");
-    client.println("Host: 10.145.20.62");
+                   "?id=" +
+                   String(valor) + "&st=" + String(valor2) + " HTTP/1.1");
+    // client.println("Host: 10.145.20.62");
+    // client.println("Host: 10.145.20.71");
     client.println("Connection: close");
     client.println();
   } else {
     // kf you didn't get a connection to the server:
     Serial.println("Connection failed");
   }
-  interactEthernet();
+  // interactEthernet();
+  // readEthernet();
+}
+
+void readEthernet() {
+  if (client.available()) {
+    char c = client.read();
+    Serial.print(c);
+  }
 }
 
 void loop() {
-  //interactEthernet();
+  // interactEthernet();
   interactRF();
+  // sendDataEthernet(10, 1);
 }
 
 void interactEthernet() {

void setup() {
  configSerial();
  configEthernet();
  //sendDataEthernet();
  configRF();
}


    Serial.println();
    Serial.println("Disconnecting...");
    client.stop();
    // sendDataEthernet();
    // do nothing forevermore:
    // while(true);
  }
