Skip to content
Snippets Groups Projects
Commit e07b7d19 authored by Jonas Blatt's avatar Jonas Blatt :ant:
Browse files

Update RFID_IoT_BS_final.ino

parent 1b02ee5a
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
MFRC522 mfrc522(SS_PIN, RST_PIN); // initiate instance of MFRC522 for MF522-AN
const char server[] = "zeit-bis.de"; // configure network credentials (server URL)
const char server[] = "bs19-team34.bas.uni-koblenz.de"; // configure network credentials (server URL)
const char* ssid = "IoT2019"; // configure network credentials (SSID)
const char* password = "IoTinBS2019"; // configure network credentials (PW)
WiFiClient client;
......@@ -59,7 +59,7 @@ void loop() { // start the continuous readiness of the system
String data = "action=append&tagId=" + tagID; // prepare RFID tag data to be transmitted
client.println("POST /api/rfid.php HTTP/1.1"); // transfer html content
client.print("Host: zeit-bis.de\n");
client.print("Host: bs19-team34.bas.uni-koblenz.de\n");
client.println("User-Agent: ESP8266/1.0");
client.println("Connection: close");
client.println("Content-Type: application/x-www-form-urlencoded");
......@@ -75,8 +75,8 @@ void loop() { // start the continuous readiness of the system
// delay(500);
Serial.println("[CONNECTION TO SERVER CLOSED]"); // inform about successful connection closure
Serial.println("");
} else {
} else {
Serial.println("[ERROR: CONNECTION NOT SUCCESSFUL ! ! !]"); // inform about connection problem
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment