   radio.openReadingPipe(1, pipes[0]);
 }
 
-void sendDataEthernet() {
+void sendDataEthernet(int valor) {
   // if you get a connection, report back via serial:
-  if (client.connect(server, 9000)) {
+  if (client.connect(server, 8085)) {
     Serial.println("Connected");
     // Make a HTTP request:
     client.println("GET "
-                   "/soberania-code/add_sensor.php/"
-                   "?temp=100&humr=80&hums=20&radi=21 HTTP/1.1");
-    client.println("Host: 10.154.101.74");
+                   "/parking-change"
+                   "?id=" + String(valor) + "&st=0 HTTP/1.1");
+    client.println("Host: 10.145.20.62");
     client.println("Connection: close");
     client.println();
   } else {
     // kf you didn't get a connection to the server:
     Serial.println("Connection failed");
   }
+  interactEthernet();
 }
 
-void loop() { interactEthernet(); }
+void loop() {
+  //interactEthernet();
+  interactRF();
+}
 
 void interactEthernet() {
   // if there are incoming bytes available


void interactRF() {
  if (radio.available()) { // Si hay datos disponibles
    unsigned long got_time;
    bool done = false;
    while (!done) {
      // Espera aqui hasta recibir algo

      done = radio.read(&got_time, sizeof(unsigned long));
      Serial.print("Dato Recibido =");
      Serial.println(got_time);
      delay(20); // Para dar tiempo al emisor
    }

    radio.stopListening(); // Dejamos d escuchar para poder hablar

    radio.write(&got_time, sizeof(unsigned long));
    Serial.println("Enviando Respuesta");
    radio.startListening(); // Volvemos a la escucha para recibir mas paquetes
  }
}

byte mac[] = {0xDE, 0xBD, 0xBE, 0xEF, 0xFE, 0xED};
// if you don't want to use DNS (and reduce your sketch size)
// use the numeric IP instead of the name for the server:
IPAddress server(10,145,20,62); // numeric IP for Google (no DNS)
// char server[] = "192.168.1.238";    // name address for Google (using DNS)
// IP Servicio Web Destino de Datos

