Skip to content

Commit

Permalink
Change to support ILMO2
Browse files Browse the repository at this point in the history
  • Loading branch information
moan0s committed Dec 13, 2021
1 parent 1c4d366 commit 3ff6dab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions AccessControl.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ char* password = "16x7<Z82"; // Change to your configuration
const char* server = "www.fs-medtech.de";
char* path = "/bib_test/"; //Slash is necessary

String accessKeyValue = "123456";
const char* room_id = "";

String token = "123456";


//www.fs-medtech.de
Expand Down Expand Up @@ -121,9 +123,10 @@ void loop()
else {
Serial.println("Connected to server!");
// Make a HTTP request:
String httpRequestData = "index.php/?ac=check_access&access_key=" + accessKeyValue + "&UID=" + cardnumber;
String httpRequestData = "library/api/uid/"+ cardnumber + "/room/" + room_id;
Serial.println("https://" + String(server) + String(path) + httpRequestData);
client.println("GET https://" + String(server) + String(path) + httpRequestData + " HTTP/1.1");
client.println("Authorization: Token "+token);
client.println("Host:" + String(server));
client.println("Connection: close");
client.println();
Expand Down

0 comments on commit 3ff6dab

Please sign in to comment.